From 288266f84ef243c2f1f17258eada9123a6098980 Mon Sep 17 00:00:00 2001 From: martynas Date: Tue, 26 Aug 2008 17:56:30 +0000 Subject: [PATCH] don't zero-pad special values. ok millert@ --- lib/libc/stdio/vfprintf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.20.1