iconv wrapper: allocate a smaller buffer on the stack

This commit is contained in:
Ryan 2021-01-16 05:16:55 -05:00
parent 8b8f4a3925
commit 1384123e2d

View file

@ -366,7 +366,7 @@ size_t IconvWrapper::RequiredBufferSize(std::string const& str) {
}
size_t IconvWrapper::RequiredBufferSize(const char* src, size_t srcLen) {
char buff[65536];
char buff[4096];
size_t charsWritten = 0;
size_t res;