Fixed bogus assert about name lengths (bug 4486, r=fyren).

This commit is contained in:
David Anderson
2010-07-02 18:12:31 -07:00
parent f439cad46c
commit 7054b92a14
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -5437,7 +5437,7 @@ static constvalue *insert_constval(constvalue *prev,constvalue *next,const char
error(123); /* insufficient memory (fatal error) */
memset(cur,0,sizeof(constvalue));
if (name!=NULL) {
assert(strlen(name)<sNAMEMAX);
assert(strlen(name)<=sNAMEMAX);
strcpy(cur->name,name);
} /* if */
cur->value=val;