Avoid overflowing static array which c == HAT.
This commit is contained in:
parent
2ff3564ba8
commit
6dccf87632
|
@ -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:;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue