summaryrefslogtreecommitdiffstats
path: root/lib/libpthread
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2003-09-22 21:39:35 +0000
committermiod <miod@openbsd.org>2003-09-22 21:39:35 +0000
commit5f9ab6001a42c0e26cac7e4778aa71f884cb689e (patch)
treebcad484d1a398ee53f67486084e6f037e2702c47 /lib/libpthread
parentsync (diff)
downloadwireguard-openbsd-5f9ab6001a42c0e26cac7e4778aa71f884cb689e.tar.xz
wireguard-openbsd-5f9ab6001a42c0e26cac7e4778aa71f884cb689e.zip
Off-by-ones, from aaron@
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/uthread/uthread_sigaction.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/uthread/uthread_sigaction.c b/lib/libpthread/uthread/uthread_sigaction.c
index a7dff2a98cb..ef01871360e 100644
--- a/lib/libpthread/uthread/uthread_sigaction.c
+++ b/lib/libpthread/uthread/uthread_sigaction.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_sigaction.c,v 1.7 2003/01/31 04:46:17 marc Exp $ */
+/* $OpenBSD: uthread_sigaction.c,v 1.8 2003/09/22 21:39:35 miod Exp $ */
/*
* Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au>
* All rights reserved.
@@ -45,7 +45,7 @@ sigaction(int sig, const struct sigaction * act, struct sigaction * oact)
struct sigaction gact;
/* Check if the signal number is out of range: */
- if (sig < 1 || sig > NSIG) {
+ if (sig < 1 || sig >= NSIG) {
/* Return an invalid argument: */
errno = EINVAL;
ret = -1;