diff --git a/usr.bin/killall/killall.c b/usr.bin/killall/killall.c index 4530c50eed66..ea3d01c6607a 100644 --- a/usr.bin/killall/killall.c +++ b/usr.bin/killall/killall.c @@ -314,7 +314,7 @@ main(int ac, char **av) matched = 0; regfree(&rgx); } else { - if (strcmp(thiscmd, cmd) != 0) + if (strncmp(thiscmd, cmd, MAXCOMLEN) != 0) matched = 0; } }