mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Econ bufferoverflow fix
This commit is contained in:
parent
96c66c95e9
commit
28410c00a7
|
@ -141,7 +141,7 @@ void CEcon::Update()
|
|||
else if(m_aClients[ClientID].m_State == CClient::STATE_AUTHED)
|
||||
{
|
||||
char aFormatted[256];
|
||||
str_format(aFormatted, sizeof(aBuf), "cid=%d cmd='%s'", ClientID, aBuf);
|
||||
str_format(aFormatted, sizeof(aFormatted), "cid=%d cmd='%s'", ClientID, aBuf);
|
||||
Console()->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "server", aFormatted);
|
||||
m_UserClientID = ClientID;
|
||||
Console()->ExecuteLine(aBuf);
|
||||
|
|
Loading…
Reference in a new issue