Econ bufferoverflow fix

This commit is contained in:
east 2012-01-12 19:59:27 +01:00
parent 96c66c95e9
commit 28410c00a7

View file

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