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)