Safe coding practices (was Re: Bug in users command)

Chip Salzenberg chip at tct.uucp
Thu Jan 31 02:52:59 AEST 1991


According to schwartz at groucho.cs.psu.edu (Scott Schwartz):
>Happily, Chris Torek's new 4.4BSD stdio provides a way to
>read lines of any length using ``fgetline''.

BSD isn't the world; fixing 4.4BSD won't help me.

Each site (or programmer) needs to write fgetline() or its moral
equivalent using getc(), malloc() and realloc(), and use it every time
gets() or fgets() would have been used.
-- 
Chip Salzenberg at Teltronics/TCT     <chip at tct.uucp>, <uunet!pdn!tct!chip>
 "I want to mention that my opinions whether real or not are MY opinions."
             -- the inevitable William "Billy" Steinmetz



More information about the Comp.bugs.4bsd.ucb-fixes mailing list