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/game/StarServerClientContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/game/StarServerClientContext.cpp') diff --git a/source/game/StarServerClientContext.cpp b/source/game/StarServerClientContext.cpp index c3546a1..ff5b57a 100644 --- a/source/game/StarServerClientContext.cpp +++ b/source/game/StarServerClientContext.cpp @@ -91,7 +91,7 @@ bool ServerClientContext::canBecomeAdmin() const { String ServerClientContext::descriptiveName() const { RecursiveMutexLocker locker(m_mutex); String hostName = m_remoteAddress ? toString(*m_remoteAddress) : "local"; - return strf("'%s' <%s> (%s)", m_playerName, m_clientId, hostName); + return strf("'{}' <{}> ({})", m_playerName, m_clientId, hostName); } void ServerClientContext::registerRpcHandlers(JsonRpcHandlers const& rpcHandlers) { -- cgit v1.2.3