- Fix counting of match limit (-m)

Reported by:	Nali Toja <nalitoja@gmail.com>
Approved by:	delphij (mentor)
This commit is contained in:
Gabor Kovesdan 2011-10-12 01:09:57 +00:00
parent afbbd357de
commit bbf9339dbb

View File

@ -233,7 +233,7 @@ procfile(const char *fn)
linesqueued++; linesqueued++;
} }
c += t; c += t;
if (mflag && mcount < 0) if (mflag && mcount <= 0)
break; break;
} }
if (Bflag > 0) if (Bflag > 0)