use xsnprintf instead of snprintf.

snprintf is not available on LynxOS, so I changed the calls to snprintf
to calls to xsnprintf, which should be strictly equivalent.

gdb/gdbserver/ChangeLog:

        * utils.c (xsnprintf): Make non-static.
        * server.h: Add xsnprintf declaration.
        * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
        replace calls to snprintf by calls to xsnprintf throughout.
This commit is contained in:
gdbadmin 2010-09-01 01:53:43 +00:00
parent a1723c35ac
commit 6cebaf6e1a
8 changed files with 26 additions and 17 deletions

View file

@ -244,7 +244,7 @@ get_cell (void)
/* Stdarg wrapper around vsnprintf.
SIZE is the size of the buffer pointed to by STR. */
static int
int
xsnprintf (char *str, size_t size, const char *format, ...)
{
va_list args;