io/BufferedOutputStream: add missing char* cast

This commit is contained in:
Max Kellermann 2021-12-07 12:07:08 +01:00
parent cdcef49eef
commit 80c177e9a0
1 changed files with 1 additions and 1 deletions

View File

@ -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");