summaryrefslogtreecommitdiff
path: root/LibC/string.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-26 15:57:59 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-26 15:57:59 +0100
commita356746d04b50968f4b5d4eb43c587efc61dffba (patch)
treee55e826ddbdfc2e184c325933a910228ec310019 /LibC/string.cpp
parent2e5b9d318f51f73b0ac155f00345a70bf287f5e6 (diff)
downloadserenity-a356746d04b50968f4b5d4eb43c587efc61dffba.zip
Compat work towards porting vim.
Diffstat (limited to 'LibC/string.cpp')
-rw-r--r--LibC/string.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/LibC/string.cpp b/LibC/string.cpp
index 01661e3174..e252377cc5 100644
--- a/LibC/string.cpp
+++ b/LibC/string.cpp
@@ -260,7 +260,7 @@ char* strerror(int errnum)
char* strsignal(int signum)
{
- if (signum >= __signal_count) {
+ if (signum >= NSIG) {
printf("strsignal() missing string for signum=%d\n", signum);
return const_cast<char*>("Unknown signal");
}