From owner-svn-src-user@FreeBSD.ORG Thu Jul 14 18:35:59 2011 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9DF24106566B; Thu, 14 Jul 2011 18:35:59 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 8EB1C8FC0C; Thu, 14 Jul 2011 18:35:59 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p6EIZxw2040882; Thu, 14 Jul 2011 18:35:59 GMT (envelope-from gabor@svn.freebsd.org) Received: (from gabor@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p6EIZx7C040880; Thu, 14 Jul 2011 18:35:59 GMT (envelope-from gabor@svn.freebsd.org) Message-Id: <201107141835.p6EIZx7C040880@svn.freebsd.org> From: Gabor Kovesdan Date: Thu, 14 Jul 2011 18:35:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r224029 - user/gabor/tre-integration/tools/test/regex/regmatch X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2011 18:35:59 -0000 Author: gabor Date: Thu Jul 14 18:35:59 2011 New Revision: 224029 URL: http://svn.freebsd.org/changeset/base/224029 Log: - Shift one character forward after matching "" to avoid infinite loop Modified: user/gabor/tre-integration/tools/test/regex/regmatch/regmatch.c Modified: user/gabor/tre-integration/tools/test/regex/regmatch/regmatch.c ============================================================================== --- user/gabor/tre-integration/tools/test/regex/regmatch/regmatch.c Thu Jul 14 18:11:51 2011 (r224028) +++ user/gabor/tre-integration/tools/test/regex/regmatch/regmatch.c Thu Jul 14 18:35:59 2011 (r224029) @@ -42,7 +42,7 @@ main(int argc, char *argv[]) (unsigned long)pmatch.rm_eo); if (pmatch.rm_eo == len) break; - pmatch.rm_so = pmatch.rm_eo; + pmatch.rm_so = (pmatch.rm_so == pmatch.rm_eo) ? pmatch.rm_eo + 1 : pmatch.rm_eo; pmatch.rm_eo = len; first = false; }