From d10b132bf5393e648a1c64569746c8e886d50702 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 2 Nov 2017 12:14:51 +0100 Subject: stdio-common: Use array_length and array_end macros --- stdio-common/printf_fphex.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'stdio-common/printf_fphex.c') diff --git a/stdio-common/printf_fphex.c b/stdio-common/printf_fphex.c index 004d2aa716..938b0b32e0 100644 --- a/stdio-common/printf_fphex.c +++ b/stdio-common/printf_fphex.c @@ -17,6 +17,7 @@ License along with the GNU C Library; if not, see . */ +#include #include #include #include @@ -320,8 +321,8 @@ __printf_fphex (FILE *fp, /* Look for trailing zeroes. */ if (! zero_mantissa) { - wnumend = &wnumbuf[sizeof wnumbuf / sizeof wnumbuf[0]]; - numend = &numbuf[sizeof numbuf / sizeof numbuf[0]]; + wnumend = array_end (wnumbuf); + numend = array_end (numbuf); while (wnumend[-1] == L'0') { --wnumend; -- cgit 1.4.1