From: Glenn L McGrath Date: Thu, 30 Sep 2004 00:24:21 +0000 (-0000) Subject: Patch from William Barsse to fix a segfault when multiple files are specified. X-Git-Tag: 1_00~24 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f86391e7d7eaf4234fc742c1b61f32cb8a65782e;p=oweals%2Fbusybox.git Patch from William Barsse to fix a segfault when multiple files are specified. --- diff --git a/coreutils/tail.c b/coreutils/tail.c index b18064a38..e3f89d2ee 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) {