diff --git a/code/qcommon/cvar.c b/code/qcommon/cvar.c index d0a90e7e..bae4154e 100644 --- a/code/qcommon/cvar.c +++ b/code/qcommon/cvar.c @@ -1210,9 +1210,9 @@ void Cvar_Update( vmCvar_t *vmCvar ) { } 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;