]> Savannah Git Hosting - gnulib.git/commit
vasnprintf-posix: Fix possible bug with negative width handling for %lc.
authorBruno Haible <bruno@clisp.org>
Sat, 28 Jan 2023 18:12:42 +0000 (19:12 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 28 Jan 2023 18:12:42 +0000 (19:12 +0100)
commitbf23b0fb3262feade1b22c60e6e60070f06cefcc
treeb1b2a3638b47ec8650b98ad64d4105307ac3ee84
parent54c80fb6f106d7f3430dd075fcb7327bab07f368
vasnprintf-posix: Fix possible bug with negative width handling for %lc.

* lib/vasnprintf.c (VASNPRINTF): In the code for %lc in vasnprintf, test
for the FLAG_LEFT bit in the flags variable.
* tests/test-vasnprintf-posix.c (test_function): Add tests for width
given as argument for the directives %c, %lc.
* tests/test-vasprintf-posix.c (test_function): Likewise.
* tests/test-snprintf-posix.h (test_function): Likewise.
* tests/test-sprintf-posix.h (test_function): Likewise.
* tests/test-snprintf-posix.c: Include <wchar.h>, for wint_t.
* tests/test-sprintf-posix.c: Likewise.
* tests/test-vsnprintf-posix.c: Likewise.
* tests/test-vsprintf-posix.c: Likewise.
ChangeLog
tests/test-vsnprintf-posix.c
tests/test-vsprintf-posix.c