summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/wee-string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/wee-string.c b/src/core/wee-string.c
index 4a2955396..f1231bb6b 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 (screen)
length -= utf8_strlen_screen (cut_suffix);
else
- length -= length_cut_suffix;
+ length -= utf8_strlen (cut_suffix);
if (length < 0)
return strdup ("");
if (screen)