Further hackery for the inconsistency of iconv() APIs

svn path=/trunk/netsurf/; revision=11951
This commit is contained in:
John Mark Bell 2011-03-09 21:30:54 +00:00
parent b355c48f97
commit f71dcf9667

View File

@ -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)