diff --git a/lib/libc/regex/engine.c b/lib/libc/regex/engine.c index 4c3f5550aaaf..2a1a75e0b1d6 100644 --- a/lib/libc/regex/engine.c +++ b/lib/libc/regex/engine.c @@ -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 */