From 970a466c40b11ffe2fc545e6b94e75f8a1207cf6 Mon Sep 17 00:00:00 2001 From: David Schultz Date: Tue, 8 May 2007 03:08:28 +0000 Subject: [PATCH] We should never zero-pad INF or NaN (yielding silly strings like "00inf") even if the programmer asks for zero padding. --- lib/libc/stdio/vfprintf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c index 06d5e94d8561..45e7c7fbc14c 100644 --- a/lib/libc/stdio/vfprintf.c +++ b/lib/libc/stdio/vfprintf.c @@ -908,6 +908,7 @@ reswitch: switch (ch) { } else cp = (ch >= 'a') ? "inf" : "INF"; size = 3; + flags &= ~ZEROPAD; break; } flags |= FPT;