aboutsummaryrefslogtreecommitdiffstats
path: root/code/qcommon/cvar.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/qcommon/cvar.c')
-rw-r--r--code/qcommon/cvar.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/code/qcommon/cvar.c b/code/qcommon/cvar.c
index e812a83..6e229c4 100644
--- a/code/qcommon/cvar.c
+++ b/code/qcommon/cvar.c
@@ -913,10 +913,9 @@ void Cvar_Update( vmCvar_t *vmCvar ) {
vmCvar->modificationCount = cv->modificationCount;
// bk001129 - mismatches.
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 %zd exceeds MAX_CVAR_VALUE_STRING",
cv->string,
- strlen(cv->string),
- sizeof(vmCvar->string) );
+ strlen(cv->string));
// bk001212 - Q_strncpyz guarantees zero padding and dest[MAX_CVAR_VALUE_STRING-1]==0
// bk001129 - paranoia. Never trust the destination string.
// bk001129 - beware, sizeof(char*) is always 4 (for cv->string).