diff options
author | das <das@FreeBSD.org> | 2007-05-08 03:08:28 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2007-05-08 03:08:28 +0000 |
commit | d4d5d36cfcdb27651bcdacae4415c01475b6ca78 (patch) | |
tree | a931cd99f5a094a7c756662fece61e8e32029520 /lib | |
parent | cdcf6057603b6a1311a5714de33c0ae231152741 (diff) | |
download | FreeBSD-src-d4d5d36cfcdb27651bcdacae4415c01475b6ca78.zip FreeBSD-src-d4d5d36cfcdb27651bcdacae4415c01475b6ca78.tar.gz |
We should never zero-pad INF or NaN (yielding silly strings like "00inf")
even if the programmer asks for zero padding.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/stdio/vfprintf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c index 06d5e94..45e7c7f 100644 --- a/lib/libc/stdio/vfprintf.c +++ b/lib/libc/stdio/vfprintf.c @@ -908,6 +908,7 @@ fp_common: } else cp = (ch >= 'a') ? "inf" : "INF"; size = 3; + flags &= ~ZEROPAD; break; } flags |= FPT; |