summaryrefslogtreecommitdiffstats
path: root/utf8.c
diff options
context:
space:
mode:
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utf8.c b/utf8.c
index 46b1feae..56f533a2 100644
--- a/utf8.c
+++ b/utf8.c
@@ -169,7 +169,7 @@ wchar_t *utf8_dup_from(const char *str)
unsigned char *utf8_dup_to_uc(const wchar_t *wstr)
{
size_t nbyte = utf8_to_uc(0, wstr);
- unsigned char *str = (unsigned char *) chk_malloc(nbyte);
+ unsigned char *str = chk_malloc(nbyte);
utf8_to_uc(str, wstr);
return str;
}