Merge pull request #462 from AmyrAhmady/pragma-option-fix

fix "#pragma option" crash when character count is over 31
This commit is contained in:
Y-Less 2019-11-07 01:33:45 +01:00 committed by GitHub
commit e7d757fd94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1342,7 +1342,7 @@ static int command(void)
/* first gather all information, start with the tag name */
while (*lptr<=' ' && *lptr!='\0')
lptr++;
for (i=0; i<sizeof name && *lptr>' '; i++,lptr++)
for (i=0; i<sNAMEMAX && *lptr>' '; i++,lptr++)
name[i]=*lptr;
name[i]='\0';
parsesingleoption(name);