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/StarByteArray.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/core/StarByteArray.hpp') diff --git a/source/core/StarByteArray.hpp b/source/core/StarByteArray.hpp index 9f63643..cb5633b 100644 --- a/source/core/StarByteArray.hpp +++ b/source/core/StarByteArray.hpp @@ -242,7 +242,7 @@ inline char ByteArray::operator[](size_t i) const { inline char ByteArray::at(size_t i) const { if (i >= m_size) - throw OutOfRangeException(strf("Out of range in ByteArray::at(%s)", i)); + throw OutOfRangeException(strf("Out of range in ByteArray::at({})", i)); return m_data[i]; } -- cgit v1.2.3