diff --git a/src/io/BufferedOutputStream.cxx b/src/io/BufferedOutputStream.cxx index 103eb357f..e16e537b1 100644 --- a/src/io/BufferedOutputStream.cxx +++ b/src/io/BufferedOutputStream.cxx @@ -155,7 +155,7 @@ BufferedOutputStream::WriteWideToUTF8(const wchar_t *src, /* grow the buffer and try again */ length = WideCharToMultiByte(CP_UTF8, 0, src, src_length, - buffer.Write(length), length, + (char *)buffer.Write(length), length, nullptr, nullptr); if (length <= 0) throw MakeLastError(error, "UTF-8 conversion failed");