summaryrefslogtreecommitdiff
path: root/gdb/serial.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-06-29 14:57:39 +0000
committerAndrew Cagney <cagney@redhat.com>2004-06-29 14:57:39 +0000
commit04eb79b7668ffe2366a5382ef005725fa32934d5 (patch)
tree963b1b38688b38991738f318fbebfdf4cc94bb49 /gdb/serial.c
parent18e6a6626813ba2d59e733f1b52e77f6a1481c7b (diff)
downloadgdb-04eb79b7668ffe2366a5382ef005725fa32934d5.tar.gz
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/serial.c')
-rw-r--r--gdb/serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/serial.c b/gdb/serial.c
index ada5631dce9..72f02beb593 100644
--- a/gdb/serial.c
+++ b/gdb/serial.c
@@ -394,7 +394,7 @@ serial_printf (struct serial *desc, const char *format,...)
char *buf;
va_start (args, format);
- xvasprintf (&buf, format, args);
+ buf = xstrvprintf (format, args);
serial_write (desc, buf, strlen (buf));
xfree (buf);