about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/ui/window.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index 37da8e9d..46d2e85c 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -1011,9 +1011,8 @@ _win_print_wrapped(WINDOW *win, const char * const message)
         } else {
             // get word
             wordi = 0;
-            mbstate_t internal;
             while (*curr_ch != ' ' && *curr_ch != '\n' && *curr_ch != '\0') {
-                size_t ch_len = mbrlen(curr_ch, 4, &internal);
+                size_t ch_len = mbrlen(curr_ch, 4, NULL);
                 int offset = 0;
                 while (offset < ch_len) {
                     word[wordi++] = curr_ch[offset++];