mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Leave space for \0 byte (fixes #1526)
This commit is contained in:
parent
664a425b9d
commit
82f9474eb4
|
@ -141,7 +141,7 @@ void CScoreboard::RenderSpectators(float x, float y, float w)
|
||||||
|
|
||||||
if(g_Config.m_ClShowIDs)
|
if(g_Config.m_ClShowIDs)
|
||||||
{
|
{
|
||||||
char aBuffer[4];
|
char aBuffer[5];
|
||||||
int size = str_format(aBuffer, sizeof(aBuffer), "%d: ", pInfo->m_ClientID);
|
int size = str_format(aBuffer, sizeof(aBuffer), "%d: ", pInfo->m_ClientID);
|
||||||
TextRender()->TextEx(&Cursor, aBuffer, size);
|
TextRender()->TextEx(&Cursor, aBuffer, size);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue