[quake3-commits] r1836 - trunk/code/qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Feb 2 11:49:52 EST 2011


Author: thilo
Date: 2011-02-02 11:49:52 -0500 (Wed, 02 Feb 2011)
New Revision: 1836

Modified:
   trunk/code/qcommon/cvar.c
Log:
r1833 now made some Linux systems spit out warnings. Fix this once and for all


Modified: trunk/code/qcommon/cvar.c
===================================================================
--- trunk/code/qcommon/cvar.c	2011-02-02 16:46:23 UTC (rev 1835)
+++ trunk/code/qcommon/cvar.c	2011-02-02 16:49:52 UTC (rev 1836)
@@ -1210,9 +1210,9 @@
 	}
 	vmCvar->modificationCount = cv->modificationCount;
 	if ( strlen(cv->string)+1 > MAX_CVAR_VALUE_STRING ) 
-	  Com_Error( ERR_DROP, "Cvar_Update: src %s length %d exceeds MAX_CVAR_VALUE_STRING",
+	  Com_Error( ERR_DROP, "Cvar_Update: src %s length %u exceeds MAX_CVAR_VALUE_STRING",
 		     cv->string, 
-		     strlen(cv->string));
+		     (unsigned int) strlen(cv->string));
 	Q_strncpyz( vmCvar->string, cv->string,  MAX_CVAR_VALUE_STRING ); 
 
 	vmCvar->value = cv->value;



More information about the quake3-commits mailing list