eqn: enlarge errbuf to account for large tokens

This commit is contained in:
Xiao-Yong Jin 2021-01-29 05:35:40 +00:00 committed by Dan Cross
parent 20c14efad6
commit 4e6bb208eb
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ extern int class[LAST][LAST];
#undef sprintf /* Snow Leopard */ #undef sprintf /* Snow Leopard */
extern char errbuf[200]; extern char errbuf[2000];
extern char *cmdname; extern char *cmdname;
#define ERROR sprintf(errbuf, #define ERROR sprintf(errbuf,
#define FATAL ), error(1, errbuf) #define FATAL ), error(1, errbuf)

View file

@ -255,7 +255,7 @@ void yyerror(char *s)
error(0, s); /* temporary */ error(0, s); /* temporary */
} }
char errbuf[200]; char errbuf[2000];
void eprint(void) /* try to print context around error */ void eprint(void) /* try to print context around error */
{ {