diff options
Diffstat (limited to 'gdb/gnu-nat.c')
-rw-r--r-- | gdb/gnu-nat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index e6836d7..1d74d04 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -2587,10 +2587,10 @@ proc_string (struct proc *proc) static char tid_str[80]; if (proc_is_task (proc)) - sprintf (tid_str, "process %d", proc->inf->pid); + xsnprintf (tid_str, sizeof (tid_str), "process %d", proc->inf->pid); else - sprintf (tid_str, "Thread %d.%d", - proc->inf->pid, proc->tid); + xsnprintf (tid_str, sizeof (tid_str), "Thread %d.%d", + proc->inf->pid, proc->tid); return tid_str; } @@ -2607,7 +2607,7 @@ gnu_pid_to_str (struct target_ops *ops, ptid_t ptid) { static char tid_str[80]; - sprintf (tid_str, "bogus thread id %d", tid); + xsnprintf (tid_str, sizeof (tid_str), "bogus thread id %d", tid); return tid_str; } } |