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()); }