summaryrefslogtreecommitdiffstats
path: root/utf8.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2009-11-19 10:21:05 -0800
committerKaz Kylheku <kaz@kylheku.com>2009-11-19 10:21:05 -0800
commit6fc929b1384a97dd7922af731667dd2539819a49 (patch)
tree0d432d42c051affb68a7344b660056052c12da1f /utf8.c
parent61abd16ff59debebdacfe0de5050070b5dde46ee (diff)
downloadtxr-6fc929b1384a97dd7922af731667dd2539819a49.tar.gz
txr-6fc929b1384a97dd7922af731667dd2539819a49.tar.bz2
txr-6fc929b1384a97dd7922af731667dd2539819a49.zip
Use unsigned char * as allocator return value.
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;
}