* linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
This commit is contained in:
Jan Kratochvil 2011-05-30 19:26:36 +00:00
parent fa4cd53f7d
commit 07e78767d6
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -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)
{