diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-08-01 03:10:27 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-08-01 03:10:27 +0000 |
commit | a535ce141fc6862a2013dacbed935b9aafb6a8f1 (patch) | |
tree | e23e04c66b7d3a7a10ca9f0398a7f94afdf533cd /sysdeps | |
parent | b3cedb0912ea8e1219dabb3ff714cd8dc2d9b1a5 (diff) | |
download | glibc-a535ce141fc6862a2013dacbed935b9aafb6a8f1.tar glibc-a535ce141fc6862a2013dacbed935b9aafb6a8f1.tar.gz glibc-a535ce141fc6862a2013dacbed935b9aafb6a8f1.tar.bz2 glibc-a535ce141fc6862a2013dacbed935b9aafb6a8f1.zip |
Update.
2000-07-31 H.J. Lu <hjl@gnu.org>
* sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
handle the wchar_t array.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/generic/printf_fphex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/generic/printf_fphex.c b/sysdeps/generic/printf_fphex.c index 2b10fa62ac..d4cba3f4e7 100644 --- a/sysdeps/generic/printf_fphex.c +++ b/sysdeps/generic/printf_fphex.c @@ -284,21 +284,21 @@ __printf_fphex (FILE *fp, if (sizeof (unsigned long int) > 6) { - wnumstr = _itowa_word (num, wnumbuf + sizeof wnumbuf, 16, + wnumstr = _itowa_word (num, wnumbuf + (sizeof wnumbuf) / sizeof (wchar_t), 16, info->spec == 'A'); numstr = _itoa_word (num, numbuf + sizeof numbuf, 16, info->spec == 'A'); } else { - wnumstr = _itowa (num, wnumbuf + sizeof wnumbuf, 16, + wnumstr = _itowa (num, wnumbuf + sizeof wnumbuf / sizeof (wchar_t), 16, info->spec == 'A'); numstr = _itoa (num, numbuf + sizeof numbuf, 16, info->spec == 'A'); } /* Fill with zeroes. */ - while (wnumstr > wnumbuf + (sizeof wnumbuf - 52 / 4)) + while (wnumstr > wnumbuf + (sizeof wnumbuf - 52) / sizeof (wchar_t)) { *--wnumstr = L'0'; *--numstr = '0'; |