Fix ftell() error sentinel value being used in allocation
This commit is contained in:
@@ -209,7 +209,7 @@ void IniLoadFile::LoadFromDisk(const std::string &filename, Subdirectory subdir,
|
|||||||
|
|
||||||
if (save != nullptr) {
|
if (save != nullptr) {
|
||||||
save->clear();
|
save->clear();
|
||||||
save->reserve(end);
|
if (end < (1 << 20)) save->reserve(end);
|
||||||
}
|
}
|
||||||
|
|
||||||
end += ftell(in);
|
end += ftell(in);
|
||||||
|
Reference in New Issue
Block a user