From b76501f0bc908cbbb7850adf1e9e49eed95b0d31 Mon Sep 17 00:00:00 2001 From: James Booth Date: Tue, 3 Feb 2015 21:08:34 +0000 Subject: [PATCH] Removed mbstate_t use --- src/ui/window.c | 3 +-- 1 file changed, 1 insertion(+), 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++];