aboutsummaryrefslogtreecommitdiff
path: root/libiberty/vasprintf.c
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@geoffk.org>1999-12-28 03:10:39 +0000
committerGeoffrey Keating <geoffk@geoffk.org>1999-12-28 03:10:39 +0000
commitdf840b63dcbe4bf119ae0fd496f46377d6b554a4 (patch)
tree2c0bc7c3ec5e0243ae5942b81e3ea8d6942479e9 /libiberty/vasprintf.c
parentb1f10154aa98f33ca7e83bfbaf140832d31c342d (diff)
downloadgdb-df840b63dcbe4bf119ae0fd496f46377d6b554a4.zip
gdb-df840b63dcbe4bf119ae0fd496f46377d6b554a4.tar.gz
gdb-df840b63dcbe4bf119ae0fd496f46377d6b554a4.tar.bz2
* 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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libiberty/vasprintf.c b/libiberty/vasprintf.c
index eeb80e6..b959f5f 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