Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/irix off-by-one



details:   https://anonhg.NetBSD.org/src/rev/2a9a2acbf105
branches:  trunk
changeset: 571284:2a9a2acbf105
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Nov 15 23:28:50 2004 +0000

description:
off-by-one

diffstat:

 sys/compat/irix/irix_signal.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 792f1a4ac3fb -r 2a9a2acbf105 sys/compat/irix/irix_signal.c
--- a/sys/compat/irix/irix_signal.c     Mon Nov 15 21:59:23 2004 +0000
+++ b/sys/compat/irix/irix_signal.c     Mon Nov 15 23:28:50 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: irix_signal.c,v 1.29 2004/10/27 19:29:57 david Exp $ */
+/*     $NetBSD: irix_signal.c,v 1.30 2004/11/15 23:28:50 christos Exp $ */
 
 /*-
  * Copyright (c) 1994, 2001-2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: irix_signal.c,v 1.29 2004/10/27 19:29:57 david Exp $");
+__KERNEL_RCSID(0, "$NetBSD: irix_signal.c,v 1.30 2004/11/15 23:28:50 christos Exp $");
 
 #include <sys/types.h>
 #include <sys/signal.h>
@@ -155,7 +155,7 @@
        u_long code;
        caddr_t addr;
 {
-       if (sig < 0 || sig > SVR4_NSIG) {
+       if (sig < 0 || sig >= SVR4_NSIG) {
                isi->isi_errno = IRIX_EINVAL;
                return;
        }



Home | Main Index | Thread Index | Old Index