Permalink
Browse files

Reset the number of lines of tail context left to print

before processing each file to avoid printing lines
intended from the previous file.

Reported and fix by Charles Longeau <chl@tuxfamily.org>
via tech@.

ok otto millert
  • Loading branch information...
Jared Yanovich authored and howardjp committed Nov 17, 2006
1 parent 4741299 commit 5e713d23c2d639649418cf48865c3d4243efa024
Showing with 2 additions and 1 deletion.
  1. +2 −1 util.c
View
3 util.c
@@ -1,4 +1,4 @@
/* $OpenBSD: util.c,v 1.31 2006/02/09 09:54:47 otto Exp $ */
/* $OpenBSD: util.c,v 1.32 2006/09/26 15:55:17 jaredy Exp $ */
/*-
* Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav
@@ -119,6 +119,7 @@ procfile(char *fn)
ln.line_no = 0;
ln.len = 0;
linesqueued = 0;
tail = 0;
ln.off = -1;
if (Bflag > 0)

0 comments on commit 5e713d2

Please sign in to comment.