diff options
author | Eric Blake <eblake@redhat.com> | 2007-05-27 14:19:15 +0000 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2007-05-27 14:19:15 +0000 |
commit | 75acf0bb2e7f0ba0902a1c68145d0158cd3878ce (patch) | |
tree | d49a3cf66a0720568f3b9e689058669c36747472 /newlib/libc/stdio/vfprintf.c | |
parent | 7697a6d5afa8aabc0f68674c40d914ec445028e2 (diff) | |
download | newlib-75acf0bb2e7f0ba0902a1c68145d0158cd3878ce.zip newlib-75acf0bb2e7f0ba0902a1c68145d0158cd3878ce.tar.gz newlib-75acf0bb2e7f0ba0902a1c68145d0158cd3878ce.tar.bz2 |
* libc/stdio/vfprintf.c (_VFPRINTF_R): Populate 'ox' when
handling %p.
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 36b14af..0c1a47b 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 |