cvs commit: src/lib/libc/stdio vsnprintf.c
Jordan K. Hubbard
jkh at FreeBSD.org
Wed Jul 2 00:08:45 PDT 2003
jkh 2003/07/02 00:08:44 PDT
FreeBSD src repository
Modified files:
lib/libc/stdio vsnprintf.c
Log:
When size is 1 should just null terminate the string. The dummy variable
is made an array of two, to explicitly avoid stack corruption due to
null-terminating (which is doesn't actually happen due to stack alignment
padding).
Submitted by: Ed Moy <emoy at apple.com>
Obtained from: Apple Computer, Inc.
Revision Changes Path
1.22 +5 -3 src/lib/libc/stdio/vsnprintf.c
More information about the cvs-src
mailing list