mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
Compiler: Fix bogus assert about name lengths.
Imported from SM: https://bugs.alliedmods.net/show_bug.cgi?id=4486.
This commit is contained in:
parent
3b2618f63b
commit
57b172072a
@ -4412,7 +4412,7 @@ static constvalue *insert_constval(constvalue *prev,constvalue *next,const char
|
|||||||
error(103); /* insufficient memory (fatal error) */
|
error(103); /* insufficient memory (fatal error) */
|
||||||
memset(cur,0,sizeof(constvalue));
|
memset(cur,0,sizeof(constvalue));
|
||||||
if (name!=NULL) {
|
if (name!=NULL) {
|
||||||
assert(strlen(name)<sNAMEMAX);
|
assert(strlen(name)<=sNAMEMAX);
|
||||||
strcpy(cur->name,name);
|
strcpy(cur->name,name);
|
||||||
} /* if */
|
} /* if */
|
||||||
cur->value=val;
|
cur->value=val;
|
||||||
|
Loading…
Reference in New Issue
Block a user