1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:28:11 +00:00

LibC: Fix broken isprint(). I had misunderstood what's considered printable.

This commit is contained in:
Andreas Kling 2019-01-24 17:22:19 +01:00
parent faaa0dbf1d
commit e683f611f1

View file

@ -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)