mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-30 23:48:09 +01:00
Signal # NSIG (32) is invalid.
Obtained from: {Net|Open}BSD
This commit is contained in:
parent
ec2427b335
commit
7999ef2f38
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26404
@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: kill.c,v 1.6 1997/02/22 14:03:45 peter Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -112,7 +112,7 @@ main(argc, argv)
|
||||
numsig = strtol(*argv, &ep, 10);
|
||||
if (!*argv || *ep)
|
||||
errx(1, "illegal signal number: %s", *argv);
|
||||
if (numsig < 0 || numsig > NSIG)
|
||||
if (numsig < 0 || numsig >= NSIG)
|
||||
nosig(*argv);
|
||||
} else
|
||||
nosig(*argv);
|
||||
|
Loading…
Reference in New Issue
Block a user