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/CampaignMissionFighter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Stars45/CampaignMissionFighter.cpp') diff --git a/Stars45/CampaignMissionFighter.cpp b/Stars45/CampaignMissionFighter.cpp index f59d24e..3ba745a 100644 --- a/Stars45/CampaignMissionFighter.cpp +++ b/Stars45/CampaignMissionFighter.cpp @@ -178,7 +178,7 @@ CampaignMissionFighter::CreateMission(CampaignMissionRequest* req) sprintf_s(fname, "msn%03d.def", info->id); FILE* f; - fopen_s(&f, fname, "w"); + fopen_s(&f, fname, "wb"); if (f) { fprintf(f, "%s\n", script.data()); fclose(f); -- cgit v1.1