* 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:
Mark Kettenis
2005-07-18 21:00:50 +00:00
parent a7aad9aa6a
commit 5fff8fc01d
4 changed files with 9 additions and 11 deletions

View File

@@ -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;
}