mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Removed mbstate_t use
This commit is contained in:
parent
836fdd2eb1
commit
b76501f0bc
@ -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++];
|
||||
|
Loading…
Reference in New Issue
Block a user