aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorWu Zhou <woodzltc@cn.ibm.com>2005-07-20 02:56:43 +0000
committerWu Zhou <woodzltc@cn.ibm.com>2005-07-20 02:56:43 +0000
commit6c76e4a1c9743ba5ea19e5b11f71e1a39e73d291 (patch)
tree309fba67cd278d25dbf98f3866a1d33d3e57d363 /gdb/remote.c
parent4e95af62019d92c31f18f8b073d57041ebd4a641 (diff)
downloadgdb-6c76e4a1c9743ba5ea19e5b11f71e1a39e73d291.zip
gdb-6c76e4a1c9743ba5ea19e5b11f71e1a39e73d291.tar.gz
gdb-6c76e4a1c9743ba5ea19e5b11f71e1a39e73d291.tar.bz2
* remote.c (remote_pid_to_str): Use xsnprintf instead of snprintf.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 5b6125d..8113674 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -5316,10 +5316,8 @@ static char *
remote_pid_to_str (ptid_t ptid)
{
static char buf[32];
- int size;
- size = snprintf (buf, sizeof buf, "thread %d", ptid_get_pid (ptid));
- gdb_assert (size < sizeof buf);
+ xsnprintf (buf, sizeof buf, "thread %d", ptid_get_pid (ptid));
return buf;
}