]> sourceware.org Git - newlib-cygwin.git/commitdiff
* libc/stdio/vfprintf.c (_VFPRINTF_R): Populate 'ox' when
authorEric Blake <eblake@redhat.com>
Sun, 27 May 2007 14:19:15 +0000 (14:19 +0000)
committerEric Blake <eblake@redhat.com>
Sun, 27 May 2007 14:19:15 +0000 (14:19 +0000)
handling %p.

newlib/ChangeLog
newlib/libc/stdio/vfprintf.c

index c175b2418d3e42e2427b008e5eb5420a087cf4fc..6d79bcbc043073245068e3af9f54e86eb1ab780c 100644 (file)
@@ -1,3 +1,8 @@
+2007-05-27  Brian Dessent  <brian@dessent.net>
+
+       * libc/stdio/vfprintf.c (_VFPRINTF_R): Populate 'ox' when
+       handling %p.
+
 2007-05-25  Eric Blake  <ebb9@byu.net>
 
        * libc/stdio/rewind.c (rewind): Fix regression of 2003-08-22.
index 36b14afcc3b826861efcfedbd1a7ec9028c5aa0d..0c1a47bb6148852e2dcc1d06d3cdb2173f3fe8c3 100644 (file)
@@ -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
This page took 0.050168 seconds and 5 git commands to generate.