summaryrefslogtreecommitdiff
path: root/libiconv/iconv.c
diff options
context:
space:
mode:
Diffstat (limited to 'libiconv/iconv.c')
-rw-r--r--libiconv/iconv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libiconv/iconv.c b/libiconv/iconv.c
index 0462f6e10..ca92de8dd 100644
--- a/libiconv/iconv.c
+++ b/libiconv/iconv.c
@@ -384,7 +384,7 @@ size_t iconv(iconv_t cd, char **restrict in, size_t *restrict inb, char **restri
if (c < 128) break;
else {
wchar_t wc;
- l = utf8dec_wchar(&wc, *in, *inb);
+ l = utf8dec_wchar(&wc, (unsigned char*)(*in), *inb);
c = wc;
}
if (!l) l++;