aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
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;
}