* remote.c (remote_pid_to_str): Use xsnprintf instead of snprintf.
This commit is contained in:
parent
4e95af6201
commit
6c76e4a1c9
2 changed files with 5 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2005-07-20 Wu Zhou <woodzltc@cn.ibm.com>
|
||||||
|
|
||||||
|
* remote.c (remote_pid_to_str): Use xsnprintf instead of snprintf.
|
||||||
|
|
||||||
2005-07-18 Mark Kettenis <kettenis@gnu.org>
|
2005-07-18 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
* target.c (normal_pid_to_str): Use xsnprintf instead of snprintf.
|
* target.c (normal_pid_to_str): Use xsnprintf instead of snprintf.
|
||||||
|
|
|
@ -5316,10 +5316,8 @@ static char *
|
||||||
remote_pid_to_str (ptid_t ptid)
|
remote_pid_to_str (ptid_t ptid)
|
||||||
{
|
{
|
||||||
static char buf[32];
|
static char buf[32];
|
||||||
int size;
|
|
||||||
|
|
||||||
size = snprintf (buf, sizeof buf, "thread %d", ptid_get_pid (ptid));
|
xsnprintf (buf, sizeof buf, "thread %d", ptid_get_pid (ptid));
|
||||||
gdb_assert (size < sizeof buf);
|
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue