r3828 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Jul 15 02:47:11 EDT 2008


Author: div0
Date: 2008-07-15 02:47:11 -0400 (Tue, 15 Jul 2008)
New Revision: 3828

Modified:
   trunk/data/qcsrc/server/teamplay.qc
Log:
fix string leak in teamplay.qc


Modified: trunk/data/qcsrc/server/teamplay.qc
===================================================================
--- trunk/data/qcsrc/server/teamplay.qc	2008-07-14 15:20:26 UTC (rev 3827)
+++ trunk/data/qcsrc/server/teamplay.qc	2008-07-15 06:47:11 UTC (rev 3828)
@@ -342,8 +342,7 @@
 	} else {
 		versionmsg = "^2client version and server version are compatible.^8";
 	}
-	return strzone(versionmsg);
-
+	return versionmsg;
 }
 
 
@@ -450,8 +449,6 @@
 	if(timeoutStatus != 0)
 		s = strcat(s, "\n\n", getTimeoutText(1));
 
-	s = strzone(s);
-
 	if (g_grappling_hook)
 		s = strcat(s, "\n\n^8grappling hook is enabled, press 'e' to use it\n");
 
@@ -495,12 +492,8 @@
 	if(cvar("timelimit"))
 		s = strcat(s, "\n^8time limit: ^7", cvar_string("timelimit"), " minutes");
 
-	s = strzone(s);
-
 	centerprint(pl, s);
 	//sprint(pl, s);
-
-	strunzone(s);
 }
 
 




More information about the nexuiz-commits mailing list