Merge pull request #462 from AmyrAhmady/pragma-option-fix
fix "#pragma option" crash when character count is over 31
This commit is contained in:
commit
e7d757fd94
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user