diff --git a/sourcepawn/compiler/sc1.c b/sourcepawn/compiler/sc1.c index 58017c6d..bd574458 100644 --- a/sourcepawn/compiler/sc1.c +++ b/sourcepawn/compiler/sc1.c @@ -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)name,name); } /* if */ cur->value=val; diff --git a/sourcepawn/compiler/sc2.c b/sourcepawn/compiler/sc2.c index 21bcccd3..41b37bb6 100644 --- a/sourcepawn/compiler/sc2.c +++ b/sourcepawn/compiler/sc2.c @@ -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;