From b8252b4bd5b54b403095fd58f86d9d6c1cacd17c Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Sat, 29 Aug 2015 15:18:18 +0200 Subject: [PATCH] bup linesize --- util.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/util.c b/util.c index 8752847..a28f87c 100644 --- a/util.c +++ b/util.c @@ -4,6 +4,10 @@ #include #include "util.h" +#ifndef LINESIZE +# define LINESIZE 8192 +#endif + const char *isotime(time_t t) { static char buf[] = "YYYY-MM-DDTHH:MM:SSZ"; @@ -269,7 +273,7 @@ int tac(char *filename, long lines, int (*func)(char *, void *), void *param) { FILE *fp; long file_len; - char buf[BUFSIZ], *bp; + char buf[LINESIZE], *bp; int rc; if ((fp = fopen(filename, "r")) == NULL) {