aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r--gdb/linux-nat.c2
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)
{