From de974fb72388e62eecfcf1c2ea89fca7f0fe8507 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 11 Jun 2010 02:25:13 +0000 Subject: [PATCH] Cast the correct parameter when ICONV_POSIX is defined Originally committed to SVN as r4474. --- aegisub/libaegisub/common/charset_conv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/libaegisub/common/charset_conv.cpp b/aegisub/libaegisub/common/charset_conv.cpp index 61c054738..7d1f298d4 100644 --- a/aegisub/libaegisub/common/charset_conv.cpp +++ b/aegisub/libaegisub/common/charset_conv.cpp @@ -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