mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
* remote.c (remote_pid_to_str): Use xsnprintf instead of snprintf.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user