From b004df7ec35ecaf59d5d5e0f17aaf8a732dff0a7 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 14 Dec 2001 07:15:10 +0000 Subject: [PATCH] (process_string_arg): Correctly handle zero precision with wide character string format. --- stdio-common/vfprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 \ -- 2.47.2