fix: strcasecmp() return value being case-sensitive

This commit is contained in:
Lephenixnoir 2024-10-22 16:00:39 +02:00
parent 8cedf411c4
commit c16a1a3be6
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

View file

@ -7,5 +7,5 @@ int strcasecmp(const char *s1, const char *s2)
s1 += 1;
s2 += 1;
}
return (*s1 - *s2);
return tolower(*s1) - tolower(*s2);
}