summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regexec.c b/regexec.c
index b20e15df82..98fcb650c3 100644
--- a/regexec.c
+++ b/regexec.c
@@ -2211,7 +2211,7 @@ S_regmatch(pTHX_ regnode *prog)
sayNO;
if (*((U8*)s) != utf8_to_uvchr((U8*)l, &len))
sayNO;
- s++;
+ s += len;
l += len;
}
else
@@ -2220,7 +2220,7 @@ S_regmatch(pTHX_ regnode *prog)
sayNO;
if (*((U8*)l) != utf8_to_uvchr((U8*)s, &len))
sayNO;
- s += len;
+ s++;
l++;
}
locinput = l;