From 0fadedb2df93bf24ffcdd52d3e86aa2ab0075325 Mon Sep 17 00:00:00 2001 From: Geoff Keating Date: Mon, 27 Dec 1999 21:38:06 +0000 Subject: [PATCH] vasprintf.c (int_vasprintf): Don't re-read the format character as this mishandles strings like '%%s'. * vasprintf.c (int_vasprintf): Don't re-read the format character as this mishandles strings like '%%s'. From-SVN: r31102 --- libiberty/ChangeLog | 5 +++++ libiberty/vasprintf.c | 1 + 2 files changed, 6 insertions(+) diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 18f8f0515b1..cdcb7e5612f 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-12-05 Mark Mitchell * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s 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