From 82f9474eb43055464fcc976ab9f42eb477c04dbd Mon Sep 17 00:00:00 2001 From: def Date: Wed, 20 Mar 2019 18:27:08 +0100 Subject: [PATCH] Leave space for \0 byte (fixes #1526) --- src/game/client/components/scoreboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/client/components/scoreboard.cpp b/src/game/client/components/scoreboard.cpp index 012d73fb2..b92847132 100644 --- a/src/game/client/components/scoreboard.cpp +++ b/src/game/client/components/scoreboard.cpp @@ -141,7 +141,7 @@ void CScoreboard::RenderSpectators(float x, float y, float w) if(g_Config.m_ClShowIDs) { - char aBuffer[4]; + char aBuffer[5]; int size = str_format(aBuffer, sizeof(aBuffer), "%d: ", pInfo->m_ClientID); TextRender()->TextEx(&Cursor, aBuffer, size); }