On Thu, Oct 04, 2001 at 01:02:56PM -0400, Garrett Wollman wrote:
> <<On Thu, 4 Oct 2001 12:19:33 -0400, Mike Barcroft <[EMAIL PROTECTED]> said:
> 
> > -           printf("%s\n", buf);
> > +           printf("%.*s\n", (int)len, buf);
> 
> This is a *much* better patch.

..yet it needs more work: strstr() and strcspn() are used on
a non-null-terminated string.  And even if those are fixed,
additional work is done for each input line, instead of only for
the lines that actually need it (at most one per session).

G'luck,
Peter

-- 
This sentence contains exactly threee erors.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to