engine: client: simplify strings operation.
This commit is contained in:
parent
0d5cd89144
commit
f4fb8b4ac2
1 changed files with 2 additions and 1 deletions
|
@ -1727,7 +1727,8 @@ static int GAME_EXPORT pfnClientCmd( const char *szCmdString )
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// will exec later
|
// 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;
|
return 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue