diff options
Diffstat (limited to 'src/input_win.c')
-rw-r--r-- | src/input_win.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_win.c b/src/input_win.c index 0d79fd5c..87ceb7f1 100644 --- a/src/input_win.c +++ b/src/input_win.c @@ -169,7 +169,7 @@ inp_get_char(char *input, int *size) // handle insert if not at end of input if (inp_x < display_size) { - char bytes[5]; + char bytes[MB_CUR_MAX]; size_t utf_len = wcrtomb(bytes, ch, NULL); char *next_ch = g_utf8_offset_to_pointer(input, inp_x); |