From 85ebc0bc195b5d96da45c6de76fcbe11ccb327bd Mon Sep 17 00:00:00 2001 From: maxim Date: Thu, 29 Jul 2004 18:36:35 +0000 Subject: [PATCH] The signal number has to be less than NSIG strictly. PR: misc/69768 Submitted by: bronek MFC after: 1 week --- usr.bin/killall/killall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/killall/killall.c b/usr.bin/killall/killall.c index 386d64504caa..10537e624c1a 100644 --- a/usr.bin/killall/killall.c +++ b/usr.bin/killall/killall.c @@ -221,7 +221,7 @@ main(int ac, char **av) sig = strtol(*av, &ep, 10); if (!*av || *ep) errx(1, "illegal signal number: %s", *av); - if (sig < 0 || sig > NSIG) + if (sig < 0 || sig >= NSIG) nosig(*av); } else nosig(*av);