From c16a1a3be6aa98d6960c920427657002db085db6 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Tue, 22 Oct 2024 16:00:39 +0200 Subject: [PATCH] fix: strcasecmp() return value being case-sensitive --- src/string/strcasecmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string/strcasecmp.c b/src/string/strcasecmp.c index 6e827fd..0dcefa2 100644 --- a/src/string/strcasecmp.c +++ b/src/string/strcasecmp.c @@ -7,5 +7,5 @@ int strcasecmp(const char *s1, const char *s2) s1 += 1; s2 += 1; } - return (*s1 - *s2); + return tolower(*s1) - tolower(*s2); }