summaryrefslogtreecommitdiffstats
path: root/utf8.c
diff options
context:
space:
mode:
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utf8.c b/utf8.c
index 37d4bf73..ecd3c01b 100644
--- a/utf8.c
+++ b/utf8.c
@@ -202,9 +202,9 @@ size_t utf8_to(char *dst, const wchar_t *wsrc)
wchar_t *utf8_dup_from(const char *str)
{
size_t len = strlen(str);
- size_t nchar = utf8_from_buf(0, coerce(unsigned char *, str), len);
+ size_t nchar = utf8_from_buf(0, coerce(const unsigned char *, str), len);
wchar_t *wstr = chk_wmalloc(nchar);
- utf8_from_buf(wstr, coerce(unsigned char *, str), len);
+ utf8_from_buf(wstr, coerce(const unsigned char *, str), len);
return wstr;
}