summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-25 16:21:29 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-25 16:21:29 +0100
commit3a401d5249a453f952086e7096499853961bb2f3 (patch)
treeaa7f8a3da195629a35304a1a9ae8026ba2713c85
parent6208cef1541024c3b1d6816464792daf57b620db (diff)
downloadserenity-3a401d5249a453f952086e7096499853961bb2f3.zip
LibC: Oops, unbreak isprint() once again.
-rw-r--r--LibC/ctype.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/LibC/ctype.cpp b/LibC/ctype.cpp
index 273260d01a..a443db80cd 100644
--- a/LibC/ctype.cpp
+++ b/LibC/ctype.cpp
@@ -9,7 +9,7 @@ int ispunct(int c)
int isprint(int c)
{
- return isdigit(c) || isupper(c) || islower(c) || ispunct(c) || isspace(c);
+ return c >= 0x20 && c != 0x7f;
}
int isalnum(int c)