sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 7a6af2faba11168c7c83098df0a0b56c53335a0b
parent b712ef44ad49c5eed7fb89e1ab4b85a114ab4c6d
Author: Wolfgang Corcoran-Mathe <first.lord.of.teal@gmail.com>
Date:   Wed, 17 Sep 2014 10:05:27 +0100

Fix typo breaking functionality in tail

Diffstat:
Mtail.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tail.c b/tail.c @@ -60,7 +60,7 @@ dropinit(FILE *fp, const char *str, long n) ssize_t len; unsigned long i = 0; - while(i < n && ((len = agetline(&buf, &size, fp) != -1))) + while(i < n && ((len = agetline(&buf, &size, fp)) != -1)) if(len && buf[len - 1] == '\n') i++; free(buf);