diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2009-11-19 10:21:05 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2009-11-19 10:21:05 -0800 |
commit | 6fc929b1384a97dd7922af731667dd2539819a49 (patch) | |
tree | 0d432d42c051affb68a7344b660056052c12da1f /utf8.c | |
parent | 61abd16ff59debebdacfe0de5050070b5dde46ee (diff) | |
download | txr-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |