Patch from William Barsse to fix a segfault when multiple files are specified.

This commit is contained in:
Glenn L McGrath 2004-09-30 00:24:21 +00:00
parent ca29ffc206
commit f86391e7d7

View File

@ -228,6 +228,7 @@ int tail_main(int argc, char **argv)
buf = tailbuf;
taillen = 0;
seen = 1;
newline = 0;
while ((nread = tail_read(fds[i], buf, tailbufsize-taillen)) > 0) {
if (from_top) {