diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-12-14 07:19:20 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-12-14 07:19:20 +0000 |
commit | 13c5a4420b0479b07c0efa11d985e4e59dcc369d (patch) | |
tree | 6504ae308c1749459b9af04be61e449f7d10424c /stdio-common/vfprintf.c | |
parent | 9b63f5b4fae14e1636517550d45f453439cbaac6 (diff) | |
download | glibc-13c5a4420b0479b07c0efa11d985e4e59dcc369d.tar glibc-13c5a4420b0479b07c0efa11d985e4e59dcc369d.tar.gz glibc-13c5a4420b0479b07c0efa11d985e4e59dcc369d.tar.bz2 glibc-13c5a4420b0479b07c0efa11d985e4e59dcc369d.zip |
Update.
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.
Diffstat (limited to 'stdio-common/vfprintf.c')
-rw-r--r-- | stdio-common/vfprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stdio-common/vfprintf.c b/stdio-common/vfprintf.c index c5e78c7499..febd094729 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 \ |