artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a86a44
)
don't zero-pad special values. ok millert@
author
martynas
<martynas@openbsd.org>
Tue, 26 Aug 2008 17:56:30 +0000
(17:56 +0000)
committer
martynas
<martynas@openbsd.org>
Tue, 26 Aug 2008 17:56:30 +0000
(17:56 +0000)
lib/libc/stdio/vfprintf.c
patch
|
blob
|
history
diff --git
a/lib/libc/stdio/vfprintf.c
b/lib/libc/stdio/vfprintf.c
index
fd2b944
..
84c0eea
100644
(file)
--- a/
lib/libc/stdio/vfprintf.c
+++ b/
lib/libc/stdio/vfprintf.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: vfprintf.c,v 1.4
8 2008/07/10 18:18:55
martynas Exp $ */
+/* $OpenBSD: vfprintf.c,v 1.4
9 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;
}