about summary refs log tree commit diff
path: root/sysdeps/ia64/fpu/printf_fphex.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/ia64/fpu/printf_fphex.c')
-rw-r--r--sysdeps/ia64/fpu/printf_fphex.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sysdeps/ia64/fpu/printf_fphex.c b/sysdeps/ia64/fpu/printf_fphex.c
index fca607c861..3fa88a76ca 100644
--- a/sysdeps/ia64/fpu/printf_fphex.c
+++ b/sysdeps/ia64/fpu/printf_fphex.c
@@ -34,8 +34,9 @@ do {									      \
 									      \
       numstr = _itoa_word (num, numbuf + sizeof numbuf, 16,		      \
 			   info->spec == 'A');				      \
-      wnumstr = _itowa_word (num, wnumbuf + sizeof wnumbuf, 16,		      \
-			     info->spec == 'A');			      \
+      wnumstr = _itowa_word (num,					      \
+			     wnumbuf + sizeof (wnumbuf) / sizeof (wchar_t),   \
+			     16, info->spec == 'A');			      \
 									      \
       /* Fill with zeroes.  */						      \
       while (numstr > numbuf + (sizeof numbuf - 64 / 4))		      \
@@ -50,7 +51,7 @@ do {									      \
       /* We have 3 bits from the mantissa in the leading nibble.	      \
 	 Therefore we are here using `IEEE854_LONG_DOUBLE_BIAS + 3'.  */      \
       exponent = fpnum.ldbl.ieee.exponent;				      \
-									      \
+									     \
       if (exponent == 0)						      \
 	{								      \
 	  if (zero_mantissa)						      \