diff options
author | Xiao-Yong Jin <xjin@anl.gov> | 2021-01-29 05:35:40 +0000 |
---|---|---|
committer | Dan Cross <crossd@gmail.com> | 2021-01-29 06:32:41 -0500 |
commit | 4e6bb208eb96baae65fd6b1bf99aaa1115b9a9ba (patch) | |
tree | f66d6aac126a7ae187be45afbabbf8c15e942822 /src/cmd | |
parent | 20c14efad6487b0a09ecd661680321afa240bc0b (diff) | |
download | plan9port-4e6bb208eb96baae65fd6b1bf99aaa1115b9a9ba.tar.gz plan9port-4e6bb208eb96baae65fd6b1bf99aaa1115b9a9ba.tar.bz2 plan9port-4e6bb208eb96baae65fd6b1bf99aaa1115b9a9ba.zip |
eqn: enlarge errbuf to account for large tokens
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/eqn/e.h | 2 | ||||
-rw-r--r-- | src/cmd/eqn/input.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/eqn/e.h b/src/cmd/eqn/e.h index 07dc4df6..f2a71849 100644 --- a/src/cmd/eqn/e.h +++ b/src/cmd/eqn/e.h @@ -20,7 +20,7 @@ extern int class[LAST][LAST]; #undef sprintf /* Snow Leopard */ -extern char errbuf[200]; +extern char errbuf[2000]; extern char *cmdname; #define ERROR sprintf(errbuf, #define FATAL ), error(1, errbuf) diff --git a/src/cmd/eqn/input.c b/src/cmd/eqn/input.c index a0c0c34e..b146171b 100644 --- a/src/cmd/eqn/input.c +++ b/src/cmd/eqn/input.c @@ -255,7 +255,7 @@ void yyerror(char *s) error(0, s); /* temporary */ } -char errbuf[200]; +char errbuf[2000]; void eprint(void) /* try to print context around error */ { |