From 2950c304a117df73b12df12b9b641101fac2bae6 Mon Sep 17 00:00:00 2001 From: Werner Fink Date: Fri, 19 Mar 2010 14:10:55 +0000 Subject: [PATCH] * Increase buffer size for path checking to normal limit PATH_MAX+1 --- src/killall5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/killall5.c b/src/killall5.c index 6696119..5937d98 100644 --- a/src/killall5.c +++ b/src/killall5.c @@ -454,8 +454,8 @@ int readproc(int do_stat) PROC *p, *n; struct dirent *d; struct stat st; - char path[256]; - char buf[256]; + char path[PATH_MAX+1]; + char buf[PATH_MAX+1]; char *s, *q; unsigned long startcode, endcode; int pid, f;