Date: Wed, 27 Aug 2003 11:20:58 -0700 (PDT) From: Kelly Yancey <kbyanc@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdio vsnprintf.c Message-ID: <200308271820.h7RIKwYL009066@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308271820.h7RIKwYL009066>