forked from Imagelibrary/binutils-gdb
* target.c (normal_pid_to_str): Use xsnprintf instead of snprintf.
* bsd-uthread.c (bsd_uthread_pid_to_str): Likewise. * inf-ttrace.c (inf_ttrace_pid_to_str): Likewise.
This commit is contained in:
@@ -1793,10 +1793,8 @@ char *
|
||||
normal_pid_to_str (ptid_t ptid)
|
||||
{
|
||||
static char buf[32];
|
||||
int size;
|
||||
|
||||
size = snprintf (buf, sizeof buf, "process %d", ptid_get_pid (ptid));
|
||||
gdb_assert (size < sizeof buf);
|
||||
xsnprintf (buf, sizeof buf, "process %d", ptid_get_pid (ptid));
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user