cvs commit: src/lib/libc/stdio vsnprintf.c
Kelly Yancey
kbyanc at FreeBSD.org
Wed Aug 27 11:20:59 PDT 2003
kbyanc 2003/08/27 11:20:58 PDT
FreeBSD src repository
Modified files: (Branch: RELENG_4)
lib/libc/stdio vsnprintf.c
Log:
MFC revision 1.22: When size is 1 should just null terminate the string.
This fix has the side effect of making vsnprintf() properly return the
length of the string that would have been created if the buffer were
infinite length when the passed size is 1. Previously, it would
erroniously return 0 which causes auto-extending sbufs to misbehave in
userland apps linked against libsbuf.
Approved by: re (jhb)
Revision Changes Path
1.12.2.2 +5 -3 src/lib/libc/stdio/vsnprintf.c
More information about the cvs-src
mailing list