gdb/
* linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
This commit is contained in:
parent
fa4cd53f7d
commit
07e78767d6
@ -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>
|
2011-05-30 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* continuations.h (continuation_ftype): Add `err' parameter.
|
* continuations.h (continuation_ftype): Add `err' parameter.
|
||||||
|
@ -2365,7 +2365,7 @@ linux_lwp_is_zombie (long lwp)
|
|||||||
FILE *procfile;
|
FILE *procfile;
|
||||||
int retval = 0;
|
int retval = 0;
|
||||||
|
|
||||||
sprintf (buffer, "/proc/%ld/status", lwp);
|
xsnprintf (buffer, sizeof (buffer), "/proc/%ld/status", lwp);
|
||||||
procfile = fopen (buffer, "r");
|
procfile = fopen (buffer, "r");
|
||||||
if (procfile == NULL)
|
if (procfile == NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user