From 332983c97b7a729c4dc5f19aa9ee4a22c420f7d8 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Tue, 27 Jun 2023 20:23:44 +1000 Subject: The Formatting String Catastrophe --- source/core/StarString.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/core/StarString.hpp') diff --git a/source/core/StarString.hpp b/source/core/StarString.hpp index 7bca996..a401076 100644 --- a/source/core/StarString.hpp +++ b/source/core/StarString.hpp @@ -388,7 +388,7 @@ String String::lookupTags(Lookup&& lookup) const { auto substrInto = [](std::string const& ref, size_t position, size_t n, std::string& result) { auto len = ref.size(); if (position > len) - throw OutOfRangeException(strf("out of range in substrInto: %s", position)); + throw OutOfRangeException(strf("out of range in substrInto: {}", position)); auto it = ref.begin(); std::advance(it, position); -- cgit v1.2.3