mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 04:26:50 +03:00
Further hackery for the inconsistency of iconv() APIs
svn path=/trunk/netsurf/; revision=11951
This commit is contained in:
parent
b355c48f97
commit
f71dcf9667
@ -308,7 +308,7 @@ utf8_convert_ret utf8_convert(const char *string, size_t len,
|
||||
return UTF8_CONVERT_NOMEM;
|
||||
|
||||
/* perform conversion */
|
||||
if (iconv(cd, &in, &slen, &out, &rlen) == (size_t)-1) {
|
||||
if (iconv(cd, (void *) &in, &slen, &out, &rlen) == (size_t)-1) {
|
||||
free(temp);
|
||||
/* clear the cached conversion descriptor as it's invalid */
|
||||
if (last_cd.cd)
|
||||
|
Loading…
Reference in New Issue
Block a user