Revision: 680
http://vcs.pcre.org/viewvc?view=rev&revision=680
Author: ph10
Date: 2011-09-06 10:15:54 +0100 (Tue, 06 Sep 2011)
Log Message:
-----------
Fix small return value bug.
Modified Paths:
--------------
code/trunk/pcre_dfa_exec.c
Modified: code/trunk/pcre_dfa_exec.c
===================================================================
--- code/trunk/pcre_dfa_exec.c 2011-09-03 18:23:04 UTC (rev 679)
+++ code/trunk/pcre_dfa_exec.c 2011-09-06 09:15:54 UTC (rev 680)
@@ -768,7 +768,7 @@
current_subject > start_subject + md->start_offset)))
{
if (match_count < 0) match_count = (offsetcount >= 2)? 1 : 0;
- else if (match_count > 0 && ++match_count * 2 >= offsetcount)
+ else if (match_count > 0 && ++match_count * 2 > offsetcount)
match_count = 0;
count = ((match_count == 0)? offsetcount : match_count * 2) - 2;
if (count > 0) memmove(offsets + 2, offsets, count * sizeof(int));