Fix insensitive mode.

This commit is contained in:
"Michael Hauser-Raspe" 2022-06-28 01:54:36 +01:00
parent 4aad9b7385
commit 10a173f069

View File

@ -65,7 +65,7 @@ static bool contains_match(const char* filter, const char* text, bool insensitiv
static char* strcasechr(const char* s,char c, bool insensitive) { static char* strcasechr(const char* s,char c, bool insensitive) {
if(insensitive) { if(insensitive) {
const char accept[3] = {c, toupper(c), 0}; const char accept[3] = {tolower(c), toupper(c), 0};
return strpbrk(s, accept); return strpbrk(s, accept);
} else { } else {
return strchr(s, c); return strchr(s, c);