Subject: Re: gets()
To: None <>
From: Richard Tobin <>
List: current-users
Date: 03/11/1994 13:55:41
> any program which uses gets() has a potential
> bug (and, if it's a set-id program, a potential security hole).

This is not the case.  There are uses of gets() that are completely
safe, for example when the program itself has written the file that is
being read.

I agree that people should be encouraged to use fgets() instead.  A
link-time warning would be appropriate.

-- Richard