diff options
author | Geoffrey Keating <geoffk@geoffk.org> | 1999-12-28 03:10:39 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@geoffk.org> | 1999-12-28 03:10:39 +0000 |
commit | 160939ce1fc3646da2e2e8758299f1b933059cfc (patch) | |
tree | 9114253978694859c408171d0b15f681bc3a1dca /libiberty/vasprintf.c | |
parent | 6c4c25d670e3919a0f4dee094196d46ad16cb9d6 (diff) | |
download | gdb-160939ce1fc3646da2e2e8758299f1b933059cfc.tar.gz |
* vasprintf.c (int_vasprintf): Don't re-read the format character
as this mishandles strings like '%%s'.
Diffstat (limited to 'libiberty/vasprintf.c')
-rw-r--r-- | libiberty/vasprintf.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 |