Bug in glibc 2 vsnprintf
Ulrich Drepper
drepper@cygnus.com
Thu Aug 20 15:52:00 GMT 1998
Andreas Jaeger <aj@arthur.rhein-neckar.de> writes:
> vsnprintf(s, 10, 12345) returned 5 <- ok
> vsnprintf(s, 1, 123) returned 3 <- AFAIK not according to the old
> specification (should be -1)
> vsnprintf(s, 2, 123) returned -1 <- ok
I added
snprintf (buf, 1, "%d", 123);
to the test suite and do not see a problem. What's a correct test case?
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------
More information about the Libc-hacker
mailing list