The signal number has to be less than NSIG strictly.

PR:		misc/69768
Submitted by:	bronek
MFC after:	1 week
This commit is contained in:
maxim 2004-07-29 18:36:35 +00:00
parent 0281468a28
commit 85ebc0bc19

View File

@ -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);