summaryrefslogtreecommitdiff
path: root/libiberty/vasprintf.c
diff options
context:
space:
mode:
authorGeoff Keating <geoffk@cygnus.com>1999-12-27 21:38:06 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>1999-12-27 21:38:06 +0000
commit0fadedb2df93bf24ffcdd52d3e86aa2ab0075325 (patch)
treed200ab330ad0b943fa0fa84c598112e724c1f10b /libiberty/vasprintf.c
parentcfa9f252201a4c30d101b098bd0f3e1d315f5d35 (diff)
downloadgcc-0fadedb2df93bf24ffcdd52d3e86aa2ab0075325.tar.gz
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
Diffstat (limited to 'libiberty/vasprintf.c')
-rw-r--r--libiberty/vasprintf.c1
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