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
cfbec08746
commit
f34d6d1384
@ -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