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:
parent
0281468a28
commit
85ebc0bc19
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user