use xsnprintf instead of snprintf.
authorgdbadmin <gdbadmin@sourceware.org>
Wed, 1 Sep 2010 01:53:43 +0000 (01:53 +0000)
committergdbadmin <gdbadmin@sourceware.org>
Wed, 1 Sep 2010 01:53:43 +0000 (01:53 +0000)
commit6cebaf6e1ae4a9f02d9d9136fccbab1ef06b1b6e
tree94bcdb617fd5dc4078b5a0fa92cad8c45e048a9e
parenta1723c35ac1fdb9cd0f250546c914122ad39f8c3
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.
gdb/ChangeLog
gdb/gdbserver/linux-low.c
gdb/gdbserver/nto-low.c
gdb/gdbserver/server.h
gdb/gdbserver/target.c
gdb/gdbserver/thread-db.c
gdb/gdbserver/tracepoint.c
gdb/gdbserver/utils.c