Date: Thu, 28 Dec 1995 21:43:05 +1100 From: Bruce Evans <bde@zeta.org.au> To: bde@zeta.org.au, peter@jhome.DIALix.COM Cc: CVS-committers@freefall.freebsd.org, cvs-usrbin@freefall.freebsd.org, joerg@freefall.freebsd.org Subject: Re: cvs commit: src/usr.bin/tftp main.c Message-ID: <199512281043.VAA26015@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>Perhaps the safest "fix" may be to shove a simple replacement for gets() >into libc or libutil with a similar interface that we can use to take >care of this sort of thing. We can edit our sources to change > gets(line); >to > __ngets(line, sizeof(line)); I think the replacement should be something like int fgets_DWIM(same args as fgets); which reads to the next newline (if any) and discards the newline and discards any data that doesn't fit. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199512281043.VAA26015>