- 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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226273

View File

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