(process_string_arg): Correctly handle zero precision with wide character

string format.
This commit is contained in:
Ulrich Drepper 2001-12-14 07:15:10 +00:00
parent 64e1abb5ad
commit b004df7ec3

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 \