Index: head/contrib/one-true-awk/awk.h =================================================================== --- head/contrib/one-true-awk/awk.h +++ head/contrib/one-true-awk/awk.h @@ -218,6 +218,8 @@ #define NCHARS (256+3) /* 256 handles 8-bit chars; 128 does 7-bit */ /* watch out in match(), etc. */ #define NSTATES 32 +#define HAT (NCHARS+2) /* matches ^ in regular expr */ + /* NCHARS is 2**n */ typedef struct rrow { long ltype; /* long avoids pointer warnings on 64-bit */ @@ -230,7 +232,7 @@ } rrow; typedef struct fa { - uschar gototab[NSTATES][NCHARS]; + uschar gototab[NSTATES][HAT + 1]; uschar out[NSTATES]; uschar *restr; int *posns[NSTATES]; Index: head/contrib/one-true-awk/b.c =================================================================== --- head/contrib/one-true-awk/b.c +++ head/contrib/one-true-awk/b.c @@ -37,8 +37,6 @@ #include "awk.h" #include "ytab.h" -#define HAT (NCHARS+2) /* matches ^ in regular expr */ - /* NCHARS is 2**n */ #define MAXLIN 22 #define type(v) (v)->nobj /* badly overloaded here */