From 865eaca27d5ea0eb7f9ad93ad3d169d192080386 Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 7 Feb 2022 00:36:48 +0100 Subject: Changed all file opening modes to be binary to have consistent newlines --- Stars45/NetLobbyClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Stars45/NetLobbyClient.cpp') diff --git a/Stars45/NetLobbyClient.cpp b/Stars45/NetLobbyClient.cpp index 9340409..14bf749 100644 --- a/Stars45/NetLobbyClient.cpp +++ b/Stars45/NetLobbyClient.cpp @@ -745,7 +745,7 @@ NetLobbyClient::DoMissionData(NetPeer* peer, Text msg) if (msg.length()) { FILE* f; - ::fopen_s(&f, "multi_mission_recv.def", "w"); + ::fopen_s(&f, "multi_mission_recv.def", "wb"); if (f) { ::fwrite(msg.data(), msg.length(), 1, f); ::fclose(f); -- cgit v1.1