Leave space for \0 byte (fixes #1526)

This commit is contained in:
def 2019-03-20 18:27:08 +01:00
parent 664a425b9d
commit 82f9474eb4

View file

@ -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);
}