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])
|
if (tmpset[j] != p[j])
|
||||||
goto different;
|
goto different;
|
||||||
/* setvec is state i */
|
/* setvec is state i */
|
||||||
assert(c < NCHARS);
|
if (c != HAT)
|
||||||
f->gototab[s][c] = i;
|
f->gototab[s][c] = i;
|
||||||
return i;
|
return i;
|
||||||
different:;
|
different:;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue