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
1 changed files with 1 additions and 1 deletions

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