about summary refs log tree commit diff
path: root/src/string
diff options
context:
space:
mode:
Diffstat (limited to 'src/string')
-rw-r--r--src/string/strsignal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string/strsignal.c b/src/string/strsignal.c
index 3b0ae6d7..d70982aa 100644
--- a/src/string/strsignal.c
+++ b/src/string/strsignal.c
@@ -48,7 +48,7 @@ static const char map[] = {
 	[SIGSYS]    = 31
 };
 
-#define sigmap(x) ((unsigned)(x) > sizeof map ? 0 : map[(unsigned)(x)])
+#define sigmap(x) ((unsigned)(x) >= sizeof map ? 0 : map[(unsigned)(x)])
 
 #endif