Fix an off-by-one error in the marking of the O_CH operator

following an OOR2 operator.

PR:		130504
MFC after:	2 weeks
This commit is contained in:
Diomidis Spinellis 2009-09-16 06:32:23 +00:00
parent bca3476acd
commit e7cbc6ee95

View File

@ -1075,7 +1075,7 @@ step(struct re_guts *g,
OP(s = g->strip[pc+look]) != O_CH;
look += OPND(s))
assert(OP(s) == OOR2);
FWD(aft, aft, look);
FWD(aft, aft, look + 1);
}
break;
case OOR2: /* propagate OCH_'s marking */