about summary refs log tree commit diff
path: root/string
diff options
context:
space:
mode:
Diffstat (limited to 'string')
-rw-r--r--string/strsignal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string/strsignal.c b/string/strsignal.c
index 41585dca00..673706e538 100644
--- a/string/strsignal.c
+++ b/string/strsignal.c
@@ -57,7 +57,7 @@ strsignal (int signum)
 #ifdef SIGRTMIN
       (signum >= SIGRTMIN && signum <= SIGRTMAX) ||
 #endif
-      signum < 0 || signum > NSIG || (desc = _sys_siglist[signum]) == NULL)
+      signum < 0 || signum >= NSIG || (desc = _sys_siglist[signum]) == NULL)
     {
       char *buffer = getbuffer ();
       int len = __snprintf (buffer, BUFFERSIZ - 1,