vasprintf() -> xvasprintf()

This commit is contained in:
Andrew Cagney 2000-12-15 12:04:03 +00:00
parent e7b044d683
commit 12859c09a6
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Fri Dec 15 22:58:59 2000 Andrew Cagney <cagney@b1.cygnus.com>
* serial.c (serial_printf): Call xvasprintf instead of vasprintf.
2000-12-14 Matthew Green <mrg@eterna.com.au>
* solib-svr4.c (solib_break_names): Add NetBSD's `_rtld_debug_state'.

View file

@ -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);