Cast the correct parameter when ICONV_POSIX is defined
Originally committed to SVN as r4474.
This commit is contained in:
parent
612b583e2b
commit
de974fb723
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue