diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-12-23 23:20:29 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-12-23 23:20:29 +0100 |
commit | 5fc656a1b8acd8e1207bd64dfbb5d1bdcde81ec8 (patch) | |
tree | ff2753fd1a1871106cb8b190d8c6e60a392986cb /src | |
parent | 91149f0acc2a4ec4dcce7d57987e17e7e9d74b6d (diff) | |
download | weechat-5fc656a1b8acd8e1207bd64dfbb5d1bdcde81ec8.zip |
api: fix function strcmp_ignore_chars with case sensitive comparison and wide chars starting with the same byte
Diffstat (limited to 'src')
-rw-r--r-- | src/core/wee-string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/wee-string.c b/src/core/wee-string.c index 14bc245e0..4bf43094e 100644 --- a/src/core/wee-string.c +++ b/src/core/wee-string.c @@ -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; |