diff --git a/tail.c b/tail.c index 59e68ca..87a08b9 100644 --- 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);