summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/vfprintf.c
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2007-01-03 04:57:58 +0000
committerdas <das@FreeBSD.org>2007-01-03 04:57:58 +0000
commit59fd40558897e7e124b0b20c81966b74f6e25b80 (patch)
tree61f638cbff790cd90abf8be46411e8f75d134965 /lib/libc/stdio/vfprintf.c
parentb5c5ce5407f0f7e04791fd5b2556e47f7432484e (diff)
downloadFreeBSD-src-59fd40558897e7e124b0b20c81966b74f6e25b80.zip
FreeBSD-src-59fd40558897e7e124b0b20c81966b74f6e25b80.tar.gz
Fix rounding of 0xf for hex fp formats.
PR: 90333
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 58e7a1f..e0c76af 100644
--- a/lib/libc/stdio/vfprintf.c
+++ b/lib/libc/stdio/vfprintf.c
@@ -535,8 +535,8 @@ __vfprintf(FILE *fp, const char *fmt0, va_list ap)
static char zeroes[PADSIZE] =
{'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0'};
- static const char xdigs_lower[17] = "0123456789abcdef?";
- static const char xdigs_upper[17] = "0123456789ABCDEF?";
+ static const char xdigs_lower[16] = "0123456789abcdef";
+ static const char xdigs_upper[16] = "0123456789ABCDEF";
/*
* BEWARE, these `goto error' on error, and PAD uses `n'.
OpenPOWER on IntegriCloud