diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-12-04 21:22:11 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-12-10 16:05:14 +0100 |
commit | ef842c5e62baf64acd30b49304e28312b7745f0c (patch) | |
tree | 074f620bee0f9889b61202ca4aa9565dbcbbbf72 /src/core | |
parent | f1cfd6f73f0f5cc16b9b919d64406a35aa81c7cf (diff) | |
download | weechat-ef842c5e62baf64acd30b49304e28312b7745f0c.zip |
core: fix function string_cut when there are non printable chars in suffix
Diffstat (limited to 'src/core')
-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 1fcb18716..971882f7c 100644 --- a/src/core/wee-string.c +++ b/src/core/wee-string.c @@ -134,7 +134,7 @@ string_cut (const char *string, int length, int count_suffix, int screen, if (count_suffix) { if (screen) - length -= utf8_strlen_screen (cut_suffix); + length -= gui_chat_strlen_screen (cut_suffix); else length -= utf8_strlen (cut_suffix); if (length < 0) |