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/StarUnicode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/core/StarUnicode.cpp') diff --git a/source/core/StarUnicode.cpp b/source/core/StarUnicode.cpp index 008df96..01e660b 100644 --- a/source/core/StarUnicode.cpp +++ b/source/core/StarUnicode.cpp @@ -12,7 +12,7 @@ void throwMissingUtf8End() { } void throwInvalidUtf32CodePoint(Utf32Type val) { - throw UnicodeException::format("Invalid UTF-32 code point %s encountered while trying to encode UTF-8", (int32_t)val); + throw UnicodeException::format("Invalid UTF-32 code point {} encountered while trying to encode UTF-8", (int32_t)val); } size_t utf8Length(const Utf8Type* utf8, size_t remain) { -- cgit v1.2.3