1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-07 06:43:00 +03:00
2001-12-13  Ulrich Drepper  <drepper@redhat.com>

	* stdio-common/tst-sprintf.c: New file.

2001-12-13  Andreas Schwab  <schwab@suse.de>

	* stdio-common/vfprintf.c (process_string_arg): Correctly handle
	zero precision with wide character string format.
This commit is contained in:
Ulrich Drepper
2001-12-14 07:19:20 +00:00
parent 9b63f5b4fa
commit 13c5a4420b
3 changed files with 29 additions and 1 deletions

View File

@@ -1195,7 +1195,7 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap)
\
memset (&mbstate, '\0', sizeof (mbstate_t)); \
\
if (prec > 0) \
if (prec >= 0) \
{ \
/* The string `s2' might not be NUL terminated. */ \
if (prec < 32768 \