Avoid overflowing static array which c == HAT.

This commit is contained in:
christos 2006-03-19 17:41:55 +00:00
parent 2ff3564ba8
commit 6dccf87632
1 changed files with 2 additions and 2 deletions

4
dist/nawk/b.c vendored
View File

@ -887,8 +887,8 @@ int cgoto(fa *f, int s, int c)
if (tmpset[j] != p[j])
goto different;
/* setvec is state i */
assert(c < NCHARS);
f->gototab[s][c] = i;
if (c != HAT)
f->gototab[s][c] = i;
return i;
different:;
}