diff --git a/proxy/include/proxy/proxy_server.hpp b/proxy/include/proxy/proxy_server.hpp index b72ca4adf9..41bf53f2bd 100644 --- a/proxy/include/proxy/proxy_server.hpp +++ b/proxy/include/proxy/proxy_server.hpp @@ -2338,7 +2338,8 @@ namespace proxy { } const auto buf_size = 5 * 1024 * 1024; - char buf[buf_size]; + auto bufs = std::make_unique(buf_size); + char* buf = bufs.get(); std::streamsize total = 0; do