From owner-cvs-all Sun Jul 9 10:36:57 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 0B17637B53A; Sun, 9 Jul 2000 10:36:54 -0700 (PDT) (envelope-from dcs@FreeBSD.org) Received: (from dcs@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id KAA62708; Sun, 9 Jul 2000 10:36:53 -0700 (PDT) (envelope-from dcs@FreeBSD.org) Message-Id: <200007091736.KAA62708@freefall.freebsd.org> From: "Daniel C. Sobral" Date: Sun, 9 Jul 2000 10:36:53 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/regex engine.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG dcs 2000/07/09 10:36:53 PDT Modified files: lib/libc/regex engine.c Log: 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 Revision Changes Path 1.9 +2 -2 src/lib/libc/regex/engine.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message