2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-19 01:58:02 +03:00

Use sizeof in PF_stuffcmd_I

This commit is contained in:
In-line 2017-04-25 18:13:06 +04:00
parent 7efc256c7c
commit 1609e42d86

View File

@ -828,7 +828,7 @@ void EXT_FUNC PF_stuffcmd_I(edict_t *pEdict, const char *szFmt, ...)
Q_vsnprintf(szOut, sizeof(szOut), szFmt, argptr);
va_end(argptr);
szOut[1023] = 0;
szOut[sizeof(szOut) - 1] = 0;
if (entnum < 1 || entnum > g_psvs.maxclients)
{
Con_Printf("\n!!!\n\nStuffCmd: Some entity tried to stuff '%s' to console "