diff --git a/libaegisub/common/charset_conv.cpp b/libaegisub/common/charset_conv.cpp index a8efba7eb..498d360b4 100644 --- a/libaegisub/common/charset_conv.cpp +++ b/libaegisub/common/charset_conv.cpp @@ -366,7 +366,7 @@ size_t IconvWrapper::RequiredBufferSize(std::string const& str) { } size_t IconvWrapper::RequiredBufferSize(const char* src, size_t srcLen) { - char buff[512]; + char buff[65536]; size_t charsWritten = 0; size_t res;