mirror of
https://github.com/weechat/weechat.git
synced 2026-07-08 18:53:12 +02:00
core: fix function string_cut when there are non printable chars in suffix
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user