Revision: 663
http://www.exim.org/viewvc/pcre2?view=rev&revision=663
Author: ph10
Date: 2017-02-12 13:30:38 +0000 (Sun, 12 Feb 2017)
Log Message:
-----------
Fix bug in most recent fix for pcre2grep.
Modified Paths:
--------------
code/trunk/src/pcre2grep.c
Modified: code/trunk/src/pcre2grep.c
===================================================================
--- code/trunk/src/pcre2grep.c 2017-02-10 17:39:29 UTC (rev 662)
+++ code/trunk/src/pcre2grep.c 2017-02-12 13:30:38 UTC (rev 663)
@@ -2311,6 +2311,7 @@
startoffset -= (int)(linelength + endlinelength);
t = end_of_line(ptr, endptr, &endlinelength);
linelength = t - ptr - endlinelength;
+ length = (size_t)(endptr - ptr);
}
goto ONLY_MATCHING_RESTART;