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 */
|
/* first gather all information, start with the tag name */
|
||||||
while (*lptr<=' ' && *lptr!='\0')
|
while (*lptr<=' ' && *lptr!='\0')
|
||||||
lptr++;
|
lptr++;
|
||||||
for (i=0; i<sizeof name && *lptr>' '; i++,lptr++)
|
for (i=0; i<sNAMEMAX && *lptr>' '; i++,lptr++)
|
||||||
name[i]=*lptr;
|
name[i]=*lptr;
|
||||||
name[i]='\0';
|
name[i]='\0';
|
||||||
parsesingleoption(name);
|
parsesingleoption(name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user