about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@openmailbox.org>2015-10-26 14:50:54 +0100
committerMichael Vetter <jubalh@openmailbox.org>2015-10-26 14:50:54 +0100
commit86c3c50219950f29511a266d638a1f38a45afe9a (patch)
tree2a9809dc4def5f413c526388ef7d718e5e37be5f
parent523d92e950f3eecb700dd2495c423cce3bfd0939 (diff)
downloadprofani-tty-86c3c50219950f29511a266d638a1f38a45afe9a.tar.gz
Get rid of compiler warning concerning NULL pointer
Casting the into correct type.
-rw-r--r--src/ui/inputwin.c2
1 files changed, 1 insertions, 1 deletions
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);