diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | dfa.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2014-05-20 Arnold D. Robbins <arnold@skeeve.com> + + * dfa.c (dfaexec): Minor sync with GNU grep. + 2014-05-14 Arnold D. Robbins <arnold@skeeve.com> * custom.h (_GL_PURE): Move definition to here. Sigh. @@ -3478,7 +3478,7 @@ dfaexec (struct dfa *d, char const *begin, char *end, /* If the previous character was a newline, count it, and skip checking of multibyte character boundary until here. */ - if (p[-1] == eol) + if (p[-1] == eol && (char *) p != begin) { nlcount++; mbp = p; |