summaryrefslogtreecommitdiff
path: root/pcregrep.c
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2017-06-13 16:53:16 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2017-06-13 16:53:16 +0000
commit9e744d9e9a0f37eb6346ab7551f9e6ad8e3a0848 (patch)
tree1a3aa4bba94e0b6d5e5bc078c05277cd7674f267 /pcregrep.c
parentb82c2fee81bb27e760339beb8124aa0f948ecbd5 (diff)
downloadpcre-9e744d9e9a0f37eb6346ab7551f9e6ad8e3a0848.tar.gz
File tidies for 8.41-RC1 release.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1703 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcregrep.c')
-rw-r--r--pcregrep.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/pcregrep.c b/pcregrep.c
index 87a3c2e..317f745 100644
--- a/pcregrep.c
+++ b/pcregrep.c
@@ -1816,18 +1816,18 @@ while (ptr < endptr)
/* If the current match ended past the end of the line (only possible
in multiline mode), we must move on to the line in which it did end
- before searching for more matches. */
-
+ before searching for more matches. */
+
while (startoffset > (int)linelength)
- {
- matchptr = ptr += linelength + endlinelength;
- filepos += (int)(linelength + endlinelength);
- linenumber++;
+ {
+ matchptr = ptr += linelength + endlinelength;
+ filepos += (int)(linelength + endlinelength);
+ linenumber++;
startoffset -= (int)(linelength + endlinelength);
t = end_of_line(ptr, endptr, &endlinelength);
linelength = t - ptr - endlinelength;
- length = (size_t)(endptr - ptr);
- }
+ length = (size_t)(endptr - ptr);
+ }
goto ONLY_MATCHING_RESTART;
}