summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--payloads/libpayload/libc/ctype.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/libpayload/libc/ctype.c b/payloads/libpayload/libc/ctype.c
index 5485b46097..fba9a7caee 100644
--- a/payloads/libpayload/libc/ctype.c
+++ b/payloads/libpayload/libc/ctype.c
@@ -81,7 +81,7 @@ int ispunct(int c)
int isspace(int c)
{
- return (c == ' ' || (c >= '\t' || c <= '\r'));
+ return (c == ' ' || (c >= '\t' && c <= '\r'));
}
int isupper(int c)