about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-11-16 18:05:01 +0000
committerUlrich Drepper <drepper@redhat.com>2000-11-16 18:05:01 +0000
commit66bdfcabdbeab9a955a5d41c6eb6fb57a34e3e4c (patch)
treee6ad83a22891f4d62c8cf01dfc06aa31586362f9
parent96ea2a1177dc147e00b92b55f8531aa641f4cb6a (diff)
downloadglibc-66bdfcabdbeab9a955a5d41c6eb6fb57a34e3e4c.tar.gz
glibc-66bdfcabdbeab9a955a5d41c6eb6fb57a34e3e4c.tar.xz
glibc-66bdfcabdbeab9a955a5d41c6eb6fb57a34e3e4c.zip
(__printf_fphex): Compute correctly end of wexpbuf buffer.
-rw-r--r--sysdeps/generic/printf_fphex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/generic/printf_fphex.c b/sysdeps/generic/printf_fphex.c
index 9a80ba833b..19cbff8d70 100644
--- a/sysdeps/generic/printf_fphex.c
+++ b/sysdeps/generic/printf_fphex.c
@@ -422,7 +422,8 @@ __printf_fphex (FILE *fp,
 
   /* Now we can compute the exponent string.  */
   expstr = _itoa_word (exponent, expbuf + sizeof expbuf, 10, 0);
-  wexpstr = _itowa_word (exponent, wexpbuf + sizeof wexpbuf, 10, 0);
+  wexpstr = _itowa_word (exponent,
+			 wexpbuf + sizeof wexpbuf / sizeof (wchar_t), 10, 0);
 
   /* Now we have all information to compute the size.  */
   width -= ((negative || info->showsign || info->space)