summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2008-08-26 17:56:31 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2008-08-26 17:56:31 +0000
commitcad2f2d93da8d9efa4271888fa8ac364a6bfc63a (patch)
tree444da2f5150019e86f01eb7b2884dec9ac5634d3 /lib
parentb23f565339323c2ea8ab0761b3ae5b64e475eb01 (diff)
don't zero-pad special values. ok millert@
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdio/vfprintf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c
index fd2b944e0af..84c0eeaa08f 100644
--- a/lib/libc/stdio/vfprintf.c
+++ b/lib/libc/stdio/vfprintf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfprintf.c,v 1.48 2008/07/10 18:18:55 martynas Exp $ */
+/* $OpenBSD: vfprintf.c,v 1.49 2008/08/26 17:56:30 martynas Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
@@ -543,11 +543,13 @@ reswitch: switch (ch) {
sign = '-';
cp = "Inf";
size = 3;
+ flags &= ~ZEROPAD;
break;
}
if (isnan(_double)) {
cp = "NaN";
size = 3;
+ flags &= ~ZEROPAD;
break;
}