summaryrefslogtreecommitdiff
path: root/src/settingsgen/settingsgen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/settingsgen/settingsgen.cpp')
-rw-r--r--src/settingsgen/settingsgen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/settingsgen/settingsgen.cpp b/src/settingsgen/settingsgen.cpp
index b2a3c76f6..513b4c754 100644
--- a/src/settingsgen/settingsgen.cpp
+++ b/src/settingsgen/settingsgen.cpp
@@ -165,11 +165,11 @@ struct SettingsIniFile : IniLoadFile {
{
}
- virtual FILE *OpenFile(const char *filename, Subdirectory subdir, size_t *size)
+ virtual FILE *OpenFile(const std::string &filename, Subdirectory subdir, size_t *size)
{
/* Open the text file in binary mode to prevent end-of-line translations
* done by ftell() and friends, as defined by K&R. */
- FILE *in = fopen(filename, "rb");
+ FILE *in = fopen(filename.c_str(), "rb");
if (in == nullptr) return nullptr;
fseek(in, 0L, SEEK_END);