- tag more functions with gnu format attribute
- fix format string bugs. still some left
This commit is contained in:
parent
c3a713832c
commit
8e82c3d605
17 changed files with 32 additions and 34 deletions
|
@ -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).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue