mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-03 05:49:41 +03:00
game: fix string vulnerabilities
This commit is contained in:
@@ -885,13 +885,13 @@ void CAI_Expresser::SpeechMsg( CBaseEntity *pFlex, const char *pszFormat, ... )
|
||||
|
||||
if ( pFlex->MyNPCPointer() )
|
||||
{
|
||||
DevMsg( pFlex->MyNPCPointer(), string );
|
||||
DevMsg( pFlex->MyNPCPointer(), "%s", string );
|
||||
}
|
||||
else
|
||||
{
|
||||
DevMsg( "%s", string );
|
||||
}
|
||||
UTIL_LogPrintf( string );
|
||||
UTIL_LogPrintf( "%s", string );
|
||||
}
|
||||
|
||||
|
||||
@@ -1042,4 +1042,4 @@ void CMultiplayer_Expresser::AllowMultipleScenes()
|
||||
void CMultiplayer_Expresser::DisallowMultipleScenes()
|
||||
{
|
||||
m_bAllowMultipleScenes = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user