From 12859c09a6847f6f1413dbbe0d10e5ebfbded1f2 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Fri, 15 Dec 2000 12:04:03 +0000 Subject: [PATCH] vasprintf() -> xvasprintf() --- gdb/ChangeLog | 4 ++++ gdb/serial.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 002273b57bb..af1b2620eca 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Fri Dec 15 22:58:59 2000 Andrew Cagney + + * serial.c (serial_printf): Call xvasprintf instead of vasprintf. + 2000-12-14 Matthew Green * solib-svr4.c (solib_break_names): Add NetBSD's `_rtld_debug_state'. diff --git a/gdb/serial.c b/gdb/serial.c index 01c15c6da89..1d25adfa1e3 100644 --- a/gdb/serial.c +++ b/gdb/serial.c @@ -394,7 +394,7 @@ serial_printf (serial_t desc, const char *format,...) char *buf; va_start (args, format); - vasprintf (&buf, format, args); + xvasprintf (&buf, format, args); SERIAL_WRITE (desc, buf, strlen (buf)); xfree (buf); -- 2.30.2