1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-01-03 14:57:42 -05:00

Merge remote-tracking branch 'jubalh/compwarn'

This commit is contained in:
James Booth 2015-10-26 20:52:45 +00:00
commit 8966c59fe1

View File

@ -299,7 +299,7 @@ static int
_inp_printable(const wint_t ch)
{
char bytes[MB_CUR_MAX+1];
size_t utf_len = wcrtomb(bytes, ch, NULL);
size_t utf_len = wcrtomb(bytes, ch, (mbstate_t*)NULL);
bytes[utf_len] = '\0';
gunichar unichar = g_utf8_get_char(bytes);