From: Ulrich Drepper Date: Fri, 14 Dec 2001 07:15:10 +0000 (+0000) Subject: (process_string_arg): Correctly handle zero precision with wide character X-Git-Tag: cvs/glibc-2-2-5~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b004df7ec35ecaf59d5d5e0f17aaf8a732dff0a7;p=thirdparty%2Fglibc.git (process_string_arg): Correctly handle zero precision with wide character string format. --- diff --git a/stdio-common/vfprintf.c b/stdio-common/vfprintf.c index c5e78c74999..febd0947290 100644 --- a/stdio-common/vfprintf.c +++ b/stdio-common/vfprintf.c @@ -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 \