From 66bdfcabdbeab9a955a5d41c6eb6fb57a34e3e4c Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 16 Nov 2000 18:05:01 +0000 Subject: (__printf_fphex): Compute correctly end of wexpbuf buffer. --- sysdeps/generic/printf_fphex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sysdeps/generic/printf_fphex.c') 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) -- cgit v1.2.3