diff --git a/src/RCONServer.cpp b/src/RCONServer.cpp
index 2ec7f191f..63bc97fe3 100644
--- a/src/RCONServer.cpp
+++ b/src/RCONServer.cpp
@@ -67,7 +67,7 @@ protected:
 	virtual void OnAccepted(cTCPLink & a_Link) override {}
 	virtual void OnError(int a_ErrorCode, const AString & a_ErrorMsg) override
 	{
-		LOGWARNING("RCON server error on port %d: %d (%s)", m_Port, a_ErrorCode, a_ErrorMsg);
+		LOGWARNING("RCON server error on port %d: %d (%s)", m_Port, a_ErrorCode, a_ErrorMsg.c_str());
 	}
 };