diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-06-29 14:57:39 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-06-29 14:57:39 +0000 |
commit | e623b5041fed796282b4dd432e59fcab026136ca (patch) | |
tree | e16ee3bd0fc75d3148a8b683137ee7ccd4a04970 /gdb/complaints.c | |
parent | 3874ed78d9c5c18fc0f4b2f9bd76f4f0232d691e (diff) | |
download | gdb-e623b5041fed796282b4dd432e59fcab026136ca.zip gdb-e623b5041fed796282b4dd432e59fcab026136ca.tar.gz gdb-e623b5041fed796282b4dd432e59fcab026136ca.tar.bz2 |
2004-06-28 Andrew Cagney <cagney@gnu.org>
* defs.h (xstrvprintf): Declare.
* utils.c (xstrvprintf): New function.
(internal_vproblem, xstrprintf, xasprintf)
(vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
* serial.c (serial_printf): Ditto.
* complaints.c (vcomplaint): Ditto.
Diffstat (limited to 'gdb/complaints.c')
-rw-r--r-- | gdb/complaints.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/complaints.c b/gdb/complaints.c index ec874da..bd869f0 100644 --- a/gdb/complaints.c +++ b/gdb/complaints.c @@ -197,7 +197,7 @@ vcomplaint (struct complaints **c, const char *file, int line, const char *fmt, { char *msg; struct cleanup *cleanups; - xvasprintf (&msg, complaint->fmt, args); + msg = xstrvprintf (complaint->fmt, args); cleanups = make_cleanup (xfree, msg); wrap_here (""); if (series != SUBSEQUENT_MESSAGE) |