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/NetServerConfig.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Stars45/NetServerConfig.cpp') diff --git a/Stars45/NetServerConfig.cpp b/Stars45/NetServerConfig.cpp index cab2f79..6c4ea9f 100644 --- a/Stars45/NetServerConfig.cpp +++ b/Stars45/NetServerConfig.cpp @@ -273,7 +273,7 @@ void NetServerConfig::Save() { FILE* f; - fopen_s(&f, "server.cfg", "w"); + fopen_s(&f, "server.cfg", "wb"); if (f) { fprintf(f, "SERVER_CONFIG\n\n"); fprintf(f, "hostname: \"%s\"\n", instance->hostname.data()); @@ -452,7 +452,7 @@ NetServerConfig::BanUser(NetUser* user) banned_names.append(user_name); FILE* f; - fopen_s(&f, "banned.cfg", "w"); + fopen_s(&f, "banned.cfg", "wb"); if (f) { fprintf(f, "BANNED_CONFIG\n\n"); -- cgit v1.1