diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-05-30 19:26:36 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-05-30 19:26:36 +0000 |
commit | 07e78767d6552aefc47e2a259f7092ac8e2ef5cb (patch) | |
tree | 39dc19335e9e6dc7dc5a030ac9a095057ce1b65a /gdb/linux-nat.c | |
parent | fa4cd53f7d2a4d6981bc4e09d5233f0df2c7f1cd (diff) | |
download | gdb-07e78767d6552aefc47e2a259f7092ac8e2ef5cb.zip gdb-07e78767d6552aefc47e2a259f7092ac8e2ef5cb.tar.gz gdb-07e78767d6552aefc47e2a259f7092ac8e2ef5cb.tar.bz2 |
gdb/
* linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r-- | gdb/linux-nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 4f62b7e..7ae1967 100644 --- a/gdb/linux-nat.c +++ b/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) { |