From: Geoffrey Keating Date: Tue, 28 Dec 1999 03:10:39 +0000 (+0000) Subject: * vasprintf.c (int_vasprintf): Don't re-read the format character X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=df840b63dcbe4bf119ae0fd496f46377d6b554a4;p=binutils-gdb.git * vasprintf.c (int_vasprintf): Don't re-read the format character as this mishandles strings like '%%s'. --- diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 8972f1f854d..fed58dd69a5 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +1999-12-27 Geoff Keating + + * vasprintf.c (int_vasprintf): Don't re-read the format character + as this mishandles strings like '%%s'. + 1999-08-03 Ian Lance Taylor * floatformat.c: Add casts to avoid signed/unsigned warnings. diff --git a/libiberty/vasprintf.c b/libiberty/vasprintf.c index eeb80e661f7..b959f5f9ca5 100644 --- a/libiberty/vasprintf.c +++ b/libiberty/vasprintf.c @@ -105,6 +105,7 @@ int_vasprintf (result, format, args) (void) va_arg (ap, char *); break; } + p++; } } #ifdef TEST