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 Konovalov 2004-07-29 18:36:35 +00:00
parent f217d18ac1
commit 79d0f70f09
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132851

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