Patch from William Barsse to fix a segfault when multiple files are specified.
This commit is contained in:
parent
ca29ffc206
commit
f86391e7d7
@ -228,6 +228,7 @@ int tail_main(int argc, char **argv)
|
|||||||
buf = tailbuf;
|
buf = tailbuf;
|
||||||
taillen = 0;
|
taillen = 0;
|
||||||
seen = 1;
|
seen = 1;
|
||||||
|
newline = 0;
|
||||||
|
|
||||||
while ((nread = tail_read(fds[i], buf, tailbufsize-taillen)) > 0) {
|
while ((nread = tail_read(fds[i], buf, tailbufsize-taillen)) > 0) {
|
||||||
if (from_top) {
|
if (from_top) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user