vasnprintf-posix: handle large precision via %.*d
authorEric Blake <ebb9@byu.net>
Tue, 2 Sep 2008 03:28:44 +0000 (21:28 -0600)
committerEric Blake <ebb9@byu.net>
Tue, 2 Sep 2008 12:14:08 +0000 (06:14 -0600)
commit48f8accaa33dfce46b63cc225a88d9421e4d2dc8
tree25dab13babe46263201e5dc576b541fa43b57599
parent95dd04d778f8ad36e7e06fec0410dec1f2e06bc0
vasnprintf-posix: handle large precision via %.*d

* lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
when handling it ourselves.
* tests/test-vasnprintf-posix.c (test_function): Add test.
* tests/test-snprintf-posix.h (test_function): Likewise.
* tests/test-sprintf-posix.h (test_function): Likewise.
* tests/test-vasprintf-posix.c (test_function): Likewise.
Reported by Alain Guibert.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/vasnprintf.c
tests/test-snprintf-posix.h
tests/test-sprintf-posix.h
tests/test-vasnprintf-posix.c
tests/test-vasprintf-posix.c