Fixed bogus assert about name lengths (bug 4486, r=fyren).
This commit is contained in:
parent
f439cad46c
commit
7054b92a14
@ -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;
|
||||
|
@ -237,7 +237,7 @@ static void check_empty(const unsigned char *lptr)
|
||||
static void doinclude(int silent)
|
||||
{
|
||||
char name[_MAX_PATH];
|
||||
char symname[sNAMEMAX];
|
||||
char symname[sNAMEMAX+1];
|
||||
char *ptr;
|
||||
char c;
|
||||
int i, result;
|
||||
|
Loading…
Reference in New Issue
Block a user