1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 14:56:39 +02:00

api: fix function strcmp_ignore_chars with case sensitive comparison and wide chars starting with the same byte

This commit is contained in:
Sébastien Helleu
2022-12-23 23:20:29 +01:00
parent 91149f0acc
commit 5fc656a1b8
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -583,7 +583,7 @@ string_strcmp_ignore_chars (const char *string1, const char *string2,
/* look at diff */
diff = (case_sensitive) ?
(int)string1[0] - (int)string2[0] : utf8_charcasecmp (string1, string2);
utf8_charcmp (string1, string2) : utf8_charcasecmp (string1, string2);
if (diff != 0)
return (diff < 0) ? -1 : 1;