diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-11-16 18:05:01 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-11-16 18:05:01 +0000 |
commit | 66bdfcabdbeab9a955a5d41c6eb6fb57a34e3e4c (patch) | |
tree | e6ad83a22891f4d62c8cf01dfc06aa31586362f9 /sysdeps | |
parent | 96ea2a1177dc147e00b92b55f8531aa641f4cb6a (diff) | |
download | glibc-66bdfcabdbeab9a955a5d41c6eb6fb57a34e3e4c.zip glibc-66bdfcabdbeab9a955a5d41c6eb6fb57a34e3e4c.tar.gz glibc-66bdfcabdbeab9a955a5d41c6eb6fb57a34e3e4c.tar.bz2 |
(__printf_fphex): Compute correctly end of wexpbuf buffer.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/generic/printf_fphex.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/generic/printf_fphex.c b/sysdeps/generic/printf_fphex.c index 9a80ba8..19cbff8 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) |