From 99f9556aa9915af71fe0187a4cc0dd539f6e8a73 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Fri, 19 Mar 2021 11:39:14 -0700 Subject: [PATCH] ws + mingw: uses << operator to write file to disk in WebSocketReceiver::handleMessage --- ws/ws.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ws/ws.cpp b/ws/ws.cpp index 350901d1..ee56eb69 100644 --- a/ws/ws.cpp +++ b/ws/ws.cpp @@ -1893,7 +1893,7 @@ namespace ix spdlog::info("ws_receive: Writing to disk: {}", filenameTmp); std::ofstream out(filenameTmp); - out.write((char*) &content.front(), content.size()); + out << content; out.close(); spdlog::info("ws_receive: Renaming {} to {}", filenameTmp, filename);