Fix ftell() error sentinel value being used in allocation

pull/238/head
Jonathan G Rennison 3 years ago
parent 6490b252f5
commit 191e4266f4

@ -209,7 +209,7 @@ void IniLoadFile::LoadFromDisk(const std::string &filename, Subdirectory subdir,
if (save != nullptr) {
save->clear();
save->reserve(end);
if (end < (1 << 20)) save->reserve(end);
}
end += ftell(in);

Loading…
Cancel
Save