From 86c3c50219950f29511a266d638a1f38a45afe9a Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Mon, 26 Oct 2015 14:50:54 +0100 Subject: Get rid of compiler warning concerning NULL pointer Casting the into correct type. --- src/ui/inputwin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c index 8faa2082..78cbfab3 100644 --- a/src/ui/inputwin.c +++ b/src/ui/inputwin.c @@ -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); -- cgit 1.4.1-2-gfad0