teqn: enlarge errbuf to account for large tokens - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 4e6bb208eb96baae65fd6b1bf99aaa1115b9a9ba
(DIR) parent 20c14efad6487b0a09ecd661680321afa240bc0b
(HTM) Author: Xiao-Yong Jin <xjin@anl.gov>
Date: Fri, 29 Jan 2021 05:35:40 +0000
eqn: enlarge errbuf to account for large tokens
Diffstat:
M src/cmd/eqn/e.h | 2 +-
M src/cmd/eqn/input.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/src/cmd/eqn/e.h b/src/cmd/eqn/e.h
t@@ -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)
(DIR) diff --git a/src/cmd/eqn/input.c b/src/cmd/eqn/input.c
t@@ -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 */
{