summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2001-02-14 21:56:03 +0000
committerPeter Wemm <peter@FreeBSD.org>2001-02-14 21:56:03 +0000
commit69179c143990523f91b5d7083b91de515e4a1e75 (patch)
treecaf142b56d95ab2a8759edc300afd87692fc14ea
parent813ff33601ecaefb6d65231197d410a3fdd18724 (diff)
Notes
-rw-r--r--usr.bin/killall/killall.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}