engine: client: simplify strings operation.

This commit is contained in:
Andrey Akhmichin 2022-12-20 08:08:59 +05:00 committed by Alibek Omarov
parent 0d5cd89144
commit f4fb8b4ac2
1 changed files with 2 additions and 1 deletions

View File

@ -1727,7 +1727,8 @@ static int GAME_EXPORT pfnClientCmd( const char *szCmdString )
else
{
// will exec later
Q_strncat( host.deferred_cmd, va( "%s\n", szCmdString ), sizeof( host.deferred_cmd ));
Q_strncat( host.deferred_cmd, szCmdString, sizeof( host.deferred_cmd ));
Q_strncat( host.deferred_cmd, "\n", sizeof( host.deferred_cmd ));
}
return 1;