]> granicus.if.org Git - psmisc/commitdiff
removed killall buffer overflow
authorCraig Small <csmall@users.sourceforge.net>
Thu, 1 Dec 2005 21:34:56 +0000 (21:34 +0000)
committerCraig Small <csmall@users.sourceforge.net>
Thu, 1 Dec 2005 21:34:56 +0000 (21:34 +0000)
src/killall.c

index bae91b95afa340a48a3022dbfb21259eed00b4a4..ac7bf89240939dae339189f039588e16a1303d8c 100644 (file)
@@ -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;