From d5be45e27a0533116ef6b84cfc479baa630936ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Thu, 11 Oct 2018 06:20:01 +0200 Subject: [PATCH] Add missing argument to format (#8082) --- src/openrct2/core/File.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openrct2/core/File.cpp b/src/openrct2/core/File.cpp index 98db53805e..97e5f01db4 100644 --- a/src/openrct2/core/File.cpp +++ b/src/openrct2/core/File.cpp @@ -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