From ef842c5e62baf64acd30b49304e28312b7745f0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 4 Dec 2022 21:22:11 +0100 Subject: core: fix function string_cut when there are non printable chars in suffix --- src/core/wee-string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') 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) -- cgit v1.2.3