Add ioquake3 changes missed in last commit.

This commit is contained in:
zturtleman 2018-04-08 02:03:51 +00:00
parent 0d5fb492cd
commit 5642b01cd7
2 changed files with 6 additions and 6 deletions

View file

@ -1045,11 +1045,11 @@ void ClientUserinfoChanged( int clientNum ) {
teamLeader = client->sess.teamLeader; teamLeader = client->sess.teamLeader;
// colors // colors
strcpy(c1, Info_ValueForKey( userinfo, "color1" )); Q_strncpyz(c1, Info_ValueForKey( userinfo, "color1" ), sizeof( c1 ));
strcpy(c2, Info_ValueForKey( userinfo, "color2" )); Q_strncpyz(c2, Info_ValueForKey( userinfo, "color2" ), sizeof( c2 ));
strcpy(redTeam, Info_ValueForKey( userinfo, "g_redteam" )); Q_strncpyz(redTeam, Info_ValueForKey( userinfo, "g_redteam" ), sizeof( redTeam ));
strcpy(blueTeam, Info_ValueForKey( userinfo, "g_blueteam" )); Q_strncpyz(blueTeam, Info_ValueForKey( userinfo, "g_blueteam" ), sizeof( blueTeam ));
// STONELANCE - UPDATE: need to add names for green and yellow teams? // STONELANCE - UPDATE: need to add names for green and yellow teams?
// send over a subset of the userinfo keys so other clients can // send over a subset of the userinfo keys so other clients can

View file

@ -176,7 +176,7 @@ static void UI_LoadArenas( void ) {
int numdirs; int numdirs;
vmCvar_t arenasFile; vmCvar_t arenasFile;
char filename[128]; char filename[128];
char dirlist[1024]; char dirlist[4096];
char* dirptr; char* dirptr;
int i, n; int i, n;
int dirlen; int dirlen;
@ -199,7 +199,7 @@ static void UI_LoadArenas( void ) {
} }
// get all arenas from .arena files // get all arenas from .arena files
numdirs = trap_FS_GetFileList("scripts", ".arena", dirlist, 1024 ); numdirs = trap_FS_GetFileList("scripts", ".arena", dirlist, 4096 );
dirptr = dirlist; dirptr = dirlist;
for (i = 0; i < numdirs; i++, dirptr += dirlen+1) { for (i = 0; i < numdirs; i++, dirptr += dirlen+1) {
dirlen = strlen(dirptr); dirlen = strlen(dirptr);