mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-19 10:08:04 +03:00
Use sizeof in PF_stuffcmd_I
This commit is contained in:
parent
7efc256c7c
commit
1609e42d86
@ -828,7 +828,7 @@ void EXT_FUNC PF_stuffcmd_I(edict_t *pEdict, const char *szFmt, ...)
|
|||||||
Q_vsnprintf(szOut, sizeof(szOut), szFmt, argptr);
|
Q_vsnprintf(szOut, sizeof(szOut), szFmt, argptr);
|
||||||
va_end(argptr);
|
va_end(argptr);
|
||||||
|
|
||||||
szOut[1023] = 0;
|
szOut[sizeof(szOut) - 1] = 0;
|
||||||
if (entnum < 1 || entnum > g_psvs.maxclients)
|
if (entnum < 1 || entnum > g_psvs.maxclients)
|
||||||
{
|
{
|
||||||
Con_Printf("\n!!!\n\nStuffCmd: Some entity tried to stuff '%s' to console "
|
Con_Printf("\n!!!\n\nStuffCmd: Some entity tried to stuff '%s' to console "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user