diff options
author | James Booth <boothj5@gmail.com> | 2015-02-03 21:08:34 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-02-03 21:08:34 +0000 |
commit | b76501f0bc908cbbb7850adf1e9e49eed95b0d31 (patch) | |
tree | e993844e2e7d2ab5bd2fe166d1e670157627c9ef /src | |
parent | 836fdd2eb1fdba1dab6bd2b93ad65deb64185dd5 (diff) | |
download | profani-tty-b76501f0bc908cbbb7850adf1e9e49eed95b0d31.tar.gz |
Removed mbstate_t use
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/window.c | 3 |
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++]; |