summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regexec.c b/regexec.c
index 1267065175..3992aafcdc 100644
--- a/regexec.c
+++ b/regexec.c
@@ -471,10 +471,10 @@ I32 safebase; /* no need to remember string in subbase */
goto phooey;
got_it:
+ strend += dontbother; /* uncheat */
prog->subbeg = strbeg;
prog->subend = strend;
if ((!safebase && (prog->nparens || sawampersand)) || prog->do_folding) {
- strend += dontbother; /* uncheat */
i = strend - startpos + (stringarg - strbeg);
if (safebase) { /* no need for $digit later */
s = strbeg;