Signal # NSIG (32) is invalid.

Obtained from: {Net|Open}BSD
This commit is contained in:
Philippe Charnier 1997-06-03 06:24:50 +00:00
parent ec2427b335
commit 7999ef2f38
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26404

View File

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