summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorGlenn L McGrath2004-09-30 00:24:21 +0000
committerGlenn L McGrath2004-09-30 00:24:21 +0000
commitf86391e7d7eaf4234fc742c1b61f32cb8a65782e (patch)
treece57b2149107a5fb404536be4d035c05690fdac1 /coreutils
parentca29ffc2065cabfdc374922a97b22eb4f1f96d4c (diff)
downloadbusybox-f86391e7d7eaf4234fc742c1b61f32cb8a65782e.zip
busybox-f86391e7d7eaf4234fc742c1b61f32cb8a65782e.tar.gz
Patch from William Barsse to fix a segfault when multiple files are specified.
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/tail.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/coreutils/tail.c b/coreutils/tail.c
index b18064a..e3f89d2 100644
--- a/coreutils/tail.c
+++ b/coreutils/tail.c
@@ -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) {