What's so bad about scanf anyway??? (really what's bad about gets)
Henry Spencer
henry at zoo.toronto.edu
Sat Nov 17 03:52:03 AEST 1990
In article <879 at jonlab.UUCP> jon at jonlab.UUCP (Jon H. LaBadie) writes:
>I've a vague recollection that declaring input arrays to be BUFSIZ
>in length provides some protection to overflow by gets(3C).
Nope. Except insofar as making the arrays longer reduces the probability
of somebody overflowing them. There is no magic associated with BUFSIZ.
--
"I don't *want* to be normal!" | Henry Spencer at U of Toronto Zoology
"Not to worry." | henry at zoo.toronto.edu utzoo!henry
More information about the Comp.lang.c
mailing list