aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnonymous AWK fan <awkfan77@mailfence.com>2021-10-09 19:23:05 +0100
committerAnonymous AWK fan <awkfan77@mailfence.com>2021-10-09 19:23:05 +0100
commit40f0527d5d1a32124163c4183d92f794844eb043 (patch)
tree9c88eb1c035e6635f3b1c358ee71dd04f9c4d8bc
parentf9affa922c5e074990a999d486d4bc823590fd93 (diff)
downloadone-true-awk-40f0527d5d1a32124163c4183d92f794844eb043.tar.gz
Fix https://github.com/onetrueawk/awk/issues/121
-rw-r--r--b.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/b.c b/b.c
index 8042366..6fb7343 100644
--- a/b.c
+++ b/b.c
@@ -1101,7 +1101,7 @@ rescan:
* program to track each string's length.
*/
for (i = 1; i <= UCHAR_MAX; i++) {
- if (!adjbuf((char **) &buf, &bufsz, bp-buf+1, 100, (char **) &bp, "relex2"))
+ if (!adjbuf((char **) &buf, &bufsz, bp-buf+2, 100, (char **) &bp, "relex2"))
FATAL("out of space for reg expr %.10s...", lastre);
if (cc->cc_func(i)) {
/* escape backslash */