summaryrefslogtreecommitdiff
path: root/lib/libc/regex/engine.c
diff options
context:
space:
mode:
authorDaniel C. Sobral <dcs@FreeBSD.org>2000-07-09 17:36:53 +0000
committerDaniel C. Sobral <dcs@FreeBSD.org>2000-07-09 17:36:53 +0000
commitb6c1a56180be79c5e58d272f9fd2a8af72b41e3a (patch)
tree35af578fb38dfaee91c9d5f6ffbaab6b473eb756 /lib/libc/regex/engine.c
parentf700468d0a307b4c2ae4181cb21fcc0ec06991b8 (diff)
Notes
Diffstat (limited to 'lib/libc/regex/engine.c')
-rw-r--r--lib/libc/regex/engine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/regex/engine.c b/lib/libc/regex/engine.c
index a12538f004c5..04844ba6f437 100644
--- a/lib/libc/regex/engine.c
+++ b/lib/libc/regex/engine.c
@@ -236,7 +236,7 @@ int eflags;
/* Adjust start according to moffset, to speed things up */
if (g->moffset > -1)
- start = dp - g->moffset;
+ start = ((dp - g->moffset) < start) ? start : dp - g->moffset;
/* this loop does only one repetition except for backrefs */
for (;;) {