]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Since g->moffset points to the _maximum_ offset at which the must
authordcs <dcs@FreeBSD.org>
Sun, 9 Jul 2000 17:36:53 +0000 (17:36 +0000)
committerdcs <dcs@FreeBSD.org>
Sun, 9 Jul 2000 17:36:53 +0000 (17:36 +0000)
commit13a9107aac37e67e8ab42faaa4fd3b52bdb7c406
treebc641dc4933443e060c47117f79a0ce430b20434
parentb42c412805b2d1944c8ae8bb09c9e16ae819cb71
Since g->moffset points to the _maximum_ offset at which the must
string may be found (from the beginning of the pattern), the point
at which must is found minus that offset may actually point to some
place before the start of the text.

In that case, make start = start.

Alternatively, this could be tested for in the preceding if, but it
did not occur to me. :-)

Caught by: regex(3) test code
lib/libc/regex/engine.c