From a1aed18c8b2cf8352cf4d24d12a4a157be26be6f Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Mon, 4 Jul 2022 11:41:50 +0100 Subject: [PATCH] ReadOnlyTest: Use "w" mode instead of "wt" There is no reason to open that file in text mode explicitly --- Source/restrict.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/restrict.cpp b/Source/restrict.cpp index d0ccf8d01..bed481530 100644 --- a/Source/restrict.cpp +++ b/Source/restrict.cpp @@ -13,7 +13,7 @@ namespace devilution { void ReadOnlyTest() { const std::string path = paths::PrefPath() + "Diablo1ReadOnlyTest.foo"; - FILE *f = FOpen(path.c_str(), "wt"); + FILE *f = FOpen(path.c_str(), "w"); if (f == nullptr) { DirErrorDlg(paths::PrefPath()); }