>From 36f8a291f87368072fd382cdcd9255b4163d6e1b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 3 Jul 2015 08:11:53 -0700 Subject: [PATCH 2/2] grep: simplify print_line_middle slightly * src/grep.c (print_line_middle): Simplify. --- src/grep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/grep.c b/src/grep.c index d1581e3..778dbcb 100644 --- a/src/grep.c +++ b/src/grep.c @@ -1022,8 +1022,8 @@ print_line_middle (const char *beg, const char *lim, const char *mid = NULL; while (cur < lim - && ((match_offset = execute (beg, lim - beg, &match_size, - beg + (cur - beg))) != (size_t) -1)) + && ((match_offset = execute (beg, lim - beg, &match_size, cur)) + != (size_t) -1)) { char const *b = beg + match_offset; -- 2.1.0