Browse Source

gdb/

* linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
binutils-2_22-branch
Jan Kratochvil 15 years ago
parent
commit
07e78767d6
  1. 4
      gdb/ChangeLog
  2. 2
      gdb/linux-nat.c

4
gdb/ChangeLog

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

2
gdb/linux-nat.c

@ -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…
Cancel
Save