gdb/
* linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
This commit is contained in:
parent
fa4cd53f7d
commit
07e78767d6
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
* linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
|
||||
|
||||
2011-05-30 Pedro Alves <pedro@codesourcery.com>
|
||||
|
||||
* continuations.h (continuation_ftype): Add `err' parameter.
|
||||
|
|
|
@ -2365,7 +2365,7 @@ linux_lwp_is_zombie (long lwp)
|
|||
FILE *procfile;
|
||||
int retval = 0;
|
||||
|
||||
sprintf (buffer, "/proc/%ld/status", lwp);
|
||||
xsnprintf (buffer, sizeof (buffer), "/proc/%ld/status", lwp);
|
||||
procfile = fopen (buffer, "r");
|
||||
if (procfile == NULL)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue