From: Craig Small Date: Thu, 1 Dec 2005 21:34:56 +0000 (+0000) Subject: removed killall buffer overflow X-Git-Tag: v22.11~94 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c12b0e32d5e7d10ff37c9dc6771af3149a29dec9;p=psmisc removed killall buffer overflow --- diff --git a/src/killall.c b/src/killall.c index bae91b9..ac7bf89 100644 --- a/src/killall.c +++ b/src/killall.c @@ -275,7 +275,7 @@ kill_all (int signal, int names, char **namelist, struct passwd *pwent) continue; } free (path); - okay = fscanf (file, "%*d (%[^)]", comm) == 1; + okay = fscanf (file, "%*d (%15[^)]", comm) == 1; (void) fclose (file); if (!okay) continue;