gets(3) nonsense

James Logan III logan at vsedev.VSE.COM
Wed Nov 23 10:28:44 AEST 1988


In article <644 at scotty.UUCP> jwr at scotty.UUCP (Dier Retlaw Semaj) writes:
>
>What about sprintf() & fprintf()?
>The user does not have *complete control* over these functions.

True, sprintf() could write beyond the end of the string passed
as its first parameter.  But I don't see what damage fprintf()
would do, unless it does not check its internal buffer boundaries
as it expands the format string.  If that's the problem then
printf() would have the same problem.  Anyone here seen the
source?   

Hey, lets do away with printf! :-)

			-Jim

-- 
Jim Logan		logan at vsedev.vse.com
(703) 892-0002		uucp:	..!uunet!vsedev!logan
			inet:	logan%vsedev.vse.com at uunet.uu.net



More information about the Comp.lang.c mailing list