Compiler: Fix bogus assert about name lengths.

Imported from SM: https://bugs.alliedmods.net/show_bug.cgi?id=4486.
This commit is contained in:
Arkshine 2014-08-13 17:30:40 +02:00
parent 3b2618f63b
commit 57b172072a

View File

@ -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;