]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* vasprintf.c (int_vasprintf): Don't re-read the format character
authorGeoffrey Keating <geoffk@geoffk.org>
Tue, 28 Dec 1999 03:10:39 +0000 (03:10 +0000)
committerGeoffrey Keating <geoffk@geoffk.org>
Tue, 28 Dec 1999 03:10:39 +0000 (03:10 +0000)
as this mishandles strings like '%%s'.

libiberty/ChangeLog
libiberty/vasprintf.c

index 8972f1f854d19235418c0d8a97d24c4f429995f9..fed58dd69a53f8fc6918902a4bcd981aee1e30ac 100644 (file)
@@ -1,3 +1,8 @@
+1999-12-27  Geoff Keating  <geoffk@cygnus.com>
+
+       * vasprintf.c (int_vasprintf): Don't re-read the format character
+       as this mishandles strings like '%%s'.
+
 1999-08-03  Ian Lance Taylor  <ian@zembu.com>
 
        * floatformat.c: Add casts to avoid signed/unsigned warnings.
index eeb80e661f7d028255d00db969406f8a2dff87b3..b959f5f9ca59c6699df5b2d7844644f7d0ff6c30 100644 (file)
@@ -105,6 +105,7 @@ int_vasprintf (result, format, args)
              (void) va_arg (ap, char *);
              break;
            }
+         p++;
        }
     }
 #ifdef TEST