ports/www/htmlcxx/files/patch-CharsetConverter.cc
Kevin Lo b97ba36550 Initial import of htmlcxx-0.85.
htmlcxx is a simple non-validating CSS and HTML parser for C++.
2012-09-19 08:08:31 +00:00

11 lines
450 B
C++

--- html/CharsetConverter.cc.orig 2012-09-19 14:05:35.000000000 +0800
+++ html/CharsetConverter.cc 2012-09-19 14:08:42.000000000 +0800
@@ -37,7 +37,7 @@
size_t ret;
while (1) {
- ret = iconv(mIconvDescriptor, const_cast<char**>(&inbuf), &inbytesleft, &outbuf, &outbytesleft);
+ ret = iconv(mIconvDescriptor, &inbuf, &inbytesleft, &outbuf, &outbytesleft);
if (ret == 0) break;
if (ret == (size_t)-1 && errno == E2BIG) return string();