mirror of
https://github.com/UberGames/ioef.git
synced 2025-01-31 04:50:37 +00:00
Use Q_strncpyz in G_AddRandomBot
This commit is contained in:
parent
9c741f95ea
commit
617107429d
1 changed files with 1 additions and 2 deletions
|
@ -288,8 +288,7 @@ void G_AddRandomBot( int team ) {
|
|||
if (team == TEAM_RED) teamstr = "red";
|
||||
else if (team == TEAM_BLUE) teamstr = "blue";
|
||||
else teamstr = "";
|
||||
strncpy(netname, value, sizeof(netname)-1);
|
||||
netname[sizeof(netname)-1] = '\0';
|
||||
Q_strncpyz(netname, value, sizeof(netname));
|
||||
Q_CleanStr(netname);
|
||||
trap_SendConsoleCommand( EXEC_INSERT, va("addbot %s %f %s %i\n", netname, skill, teamstr, 0) );
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue