1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-29 19:56:07 -04:00

Get rid of compiler warning concerning NULL pointer

Casting the into correct type.
This commit is contained in:
Michael Vetter 2015-10-26 14:50:54 +01:00
parent 523d92e950
commit 86c3c50219

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);