- tag more functions with gnu format attribute
- fix format string bugs. still some left
This commit is contained in:
1 parent
c3a713832c
commit
8e82c3d605
17 files changed
+32
-34
No files matched your search
+2
-3
@@ -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).
|
||||
|
||||
Reference in new issue
Block a user