summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/vfprintf.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2001-08-13 19:16:34 +0000
committermillert <millert@openbsd.org>2001-08-13 19:16:34 +0000
commita7b1c022734ecb8f47097d5801b24f247b7fc139 (patch)
tree0b466e04dbbd698f6fc8170597fe2e491cb71842 /lib/libc/stdio/vfprintf.c
parent- Note that unpromoted types should not be passed to va_arg (diff)
downloadwireguard-openbsd-a7b1c022734ecb8f47097d5801b24f247b7fc139.tar.xz
wireguard-openbsd-a7b1c022734ecb8f47097d5801b24f247b7fc139.zip
Fix a bug with the %e flag introduced in a -Wall pass. The original
code was in error but due to C precedence rules it didn't cause a problem.
Diffstat (limited to 'lib/libc/stdio/vfprintf.c')
-rw-r--r--lib/libc/stdio/vfprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c
index aef694bfbcc..6b47bcec834 100644
--- a/lib/libc/stdio/vfprintf.c
+++ b/lib/libc/stdio/vfprintf.c
@@ -35,7 +35,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: vfprintf.c,v 1.12 2001/07/09 06:57:45 deraadt Exp $";
+static char *rcsid = "$OpenBSD: vfprintf.c,v 1.13 2001/08/13 19:16:34 millert Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -740,7 +740,7 @@ number: if ((dprec = prec) >= 0)
ox[0] = *cp++;
ox[1] = '.';
PRINT(ox, 2);
- if (_double || (flags & ALT) == 0) {
+ if (_double) {
PRINT(cp, ndig-1);
} else /* 0.[0..] */
/* __dtoa irregularity */