about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-02-03 21:08:34 +0000
committerJames Booth <boothj5@gmail.com>2015-02-03 21:08:34 +0000
commitb76501f0bc908cbbb7850adf1e9e49eed95b0d31 (patch)
treee993844e2e7d2ab5bd2fe166d1e670157627c9ef /src
parent836fdd2eb1fdba1dab6bd2b93ad65deb64185dd5 (diff)
downloadprofani-tty-b76501f0bc908cbbb7850adf1e9e49eed95b0d31.tar.gz
Removed mbstate_t use
Diffstat (limited to 'src')
-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++];