Cast the correct parameter when ICONV_POSIX is defined

Originally committed to SVN as r4474.
This commit is contained in:
Thomas Goyne 2010-06-11 02:25:13 +00:00
parent 612b583e2b
commit de974fb723

View file

@ -75,7 +75,7 @@ class IconvWrapper::Converter {
public:
Converter(bool, const char*) { }
size_t operator()(iconv_t cd, const char** inbuf, size_t* inbytesleft, char** outbuf, size_t* outbytesleft) {
return iconv(cd, inbuf, ICONV_CONST_CAST(inbytesleft), outbuf, outbytesleft);
return iconv(cd, ICONV_CONST_CAST(inbuf), inbytesleft, outbuf, outbytesleft);
}
};
#else