'gets' problem
Volker Borchert
bt@Gaia.teknon.de
Wed Oct 6 01:32:00 GMT 1999
In article < 37FA55AE.98D1B6C5@crosswinds.net >, mscdex <mscdex@crosswinds.net> writes:
|> "the 'gets' function is dangerous and it should not be used".
|> Can anyone help and say me what's wrong with the function??
>From the manpage:
The gets() function reads characters from the standard input
stream (see intro(3)), stdin, into the array pointed to by
s, until a newline character is read or an end-of-file con-
dition is encountered. The newline character is discarded
and the string is terminated with a null character.
Can you spell "buffer overflow"? If not, go to
http://www.securityfocus.com/templates/library_category.html?category=29&path=[%20buffer%20overflows%20 ]
--
"I'm a doctor, not a mechanic." Dr Leonard McCoy <mccoy@ncc1701.starfleet.fed>
"I'm a mechanic, not a doctor." Volker Borchert <bt@teknon.de>
More information about the Gcc-help
mailing list