projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96ea2a1
)
(__printf_fphex): Compute correctly end of wexpbuf buffer.
author
Ulrich Drepper
<drepper@redhat.com>
Thu, 16 Nov 2000 18:05:01 +0000
(18:05 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Thu, 16 Nov 2000 18:05:01 +0000
(18:05 +0000)
sysdeps/generic/printf_fphex.c
patch
|
blob
|
history
diff --git
a/sysdeps/generic/printf_fphex.c
b/sysdeps/generic/printf_fphex.c
index
9a80ba8
..
19cbff8
100644
(file)
--- 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)