From 80c177e9a06b174e9476612f68e19b3be18ec38c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 7 Dec 2021 12:07:08 +0100 Subject: [PATCH] io/BufferedOutputStream: add missing char* cast --- src/io/BufferedOutputStream.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");