Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/csh make signal range check consistent.



details:   https://anonhg.NetBSD.org/src/rev/a63823d77255
branches:  trunk
changeset: 552105:a63823d77255
user:      itojun <itojun%NetBSD.org@localhost>
date:      Fri Sep 19 05:31:11 2003 +0000

description:
make signal range check consistent.

diffstat:

 bin/csh/proc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 86921c657152 -r a63823d77255 bin/csh/proc.c
--- a/bin/csh/proc.c    Fri Sep 19 00:27:56 2003 +0000
+++ b/bin/csh/proc.c    Fri Sep 19 05:31:11 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: proc.c,v 1.27 2003/08/07 09:05:06 agc Exp $ */
+/* $NetBSD: proc.c,v 1.28 2003/09/19 05:31:11 itojun Exp $ */
 
 /*-
  * Copyright (c) 1980, 1991, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)proc.c     8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: proc.c,v 1.27 2003/08/07 09:05:06 agc Exp $");
+__RCSID("$NetBSD: proc.c,v 1.28 2003/09/19 05:31:11 itojun Exp $");
 #endif
 #endif /* not lint */
 
@@ -957,7 +957,7 @@
        }
        if (Isdigit(v[0][1])) {
            signum = strtol(short2str(v[0] + 1), &ep, 10);
-           if (signum < 0 || signum > NSIG || *ep)
+           if (signum < 0 || signum >= NSIG || *ep)
                stderror(ERR_NAME | ERR_BADSIG);
        }
        else {



Home | Main Index | Thread Index | Old Index