1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Add missing argument to format (#8082)

This commit is contained in:
Michał Janiszewski
2018-10-11 06:20:01 +02:00
committed by GitHub
parent 960751addb
commit d5be45e27a

View File

@@ -63,7 +63,8 @@ namespace File
auto fsize = (size_t)fs.tellg();
if (fsize > SIZE_MAX)
{
std::string message = String::StdFormat("'%s' exceeds maximum length of %lld bytes.", SIZE_MAX);
std::string message = String::StdFormat(
"'%s' exceeds maximum length of %lld bytes.", std::string(path).c_str(), SIZE_MAX);
throw IOException(message);
}
else