diff options
author | Michael Vetter <jubalh@openmailbox.org> | 2015-10-26 14:50:54 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@openmailbox.org> | 2015-10-26 14:50:54 +0100 |
commit | 86c3c50219950f29511a266d638a1f38a45afe9a (patch) | |
tree | 2a9809dc4def5f413c526388ef7d718e5e37be5f | |
parent | 523d92e950f3eecb700dd2495c423cce3bfd0939 (diff) | |
download | profani-tty-86c3c50219950f29511a266d638a1f38a45afe9a.tar.gz |
Get rid of compiler warning concerning NULL pointer
Casting the into correct type.
-rw-r--r-- | src/ui/inputwin.c | 2 |
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); |