Codechange: Keep filenames of loaded Fio files in std::strings.

This commit is contained in:
Michael Lutz
2020-12-06 21:11:49 +01:00
parent 024a3f6259
commit 358056ec42
6 changed files with 22 additions and 24 deletions

View File

@@ -204,7 +204,7 @@ void IniLoadFile::LoadFromDisk(const std::string &filename, Subdirectory subdir)
uint comment_alloc = 0;
size_t end;
FILE *in = this->OpenFile(filename.c_str(), subdir, &end);
FILE *in = this->OpenFile(filename, subdir, &end);
if (in == nullptr) return;
end += ftell(in);