diff options
Diffstat (limited to 'newlib/libc/stdio/vfprintf.c')
-rw-r--r-- | newlib/libc/stdio/vfprintf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c index 36b14afcc..0c1a47bb6 100644 --- a/newlib/libc/stdio/vfprintf.c +++ b/newlib/libc/stdio/vfprintf.c @@ -1021,7 +1021,8 @@ reswitch: switch (ch) { base = HEX; xdigs = "0123456789abcdef"; flags |= HEXPREFIX; - ch = 'x'; + ox[0] = '0'; + ox[1] = ch = 'x'; goto nosign; case 's': #ifdef _WANT_IO_C99_FORMATS |