projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e95af6
)
* remote.c (remote_pid_to_str): Use xsnprintf instead of snprintf.
author
Wu Zhou
<woodzltc@cn.ibm.com>
Wed, 20 Jul 2005 02:56:43 +0000
(
02:56
+0000)
committer
Wu Zhou
<woodzltc@cn.ibm.com>
Wed, 20 Jul 2005 02:56:43 +0000
(
02:56
+0000)
gdb/ChangeLog
patch
|
blob
|
history
gdb/remote.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index 2baa7562748a20f719f721434d15e187f84ade4e..492caf376d08d6c39f6760574d6cd5bc9d7b4c85 100644
(file)
--- a/
gdb/ChangeLog
+++ b/
gdb/ChangeLog
@@
-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>
* target.c (normal_pid_to_str): Use xsnprintf instead of snprintf.
diff --git
a/gdb/remote.c
b/gdb/remote.c
index 5b6125d7c037b5a7f4521535a286f828895fe393..8113674f55508b193310f4960d43053576254859 100644
(file)
--- 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;
}