mirror of
https://git.busybox.net/busybox.git
synced 2024-12-01 09:33:42 +08:00
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;
|
||||
taillen = 0;
|
||||
seen = 1;
|
||||
newline = 0;
|
||||
|
||||
while ((nread = tail_read(fds[i], buf, tailbufsize-taillen)) > 0) {
|
||||
if (from_top) {
|
||||
|
Loading…
Reference in New Issue
Block a user