mirror of
https://github.com/sheumann/hush.git
synced 2024-08-20 19:29:02 +00: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