Revision: 1679
http://vcs.pcre.org/viewvc?view=rev&revision=1679
Author: ph10
Date: 2017-02-12 13:28:11 +0000 (Sun, 12 Feb 2017)
Log Message:
-----------
Fix bug in most recent fix for multiline pcre2grep.
Modified Paths:
--------------
code/trunk/pcregrep.c
Modified: code/trunk/pcregrep.c
===================================================================
--- code/trunk/pcregrep.c 2017-02-10 17:47:34 UTC (rev 1678)
+++ code/trunk/pcregrep.c 2017-02-12 13:28:11 UTC (rev 1679)
@@ -1826,6 +1826,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;