From 7274cb052668eab0cd7dcb5d48d4dec75ae707b3 Mon Sep 17 00:00:00 2001 From: Colin Patrick McCabe Date: Wed, 27 Jul 2011 10:00:30 -0700 Subject: [PATCH] src/csv.c: use a bigger buffer The CSV plugin formerly used a relatively small output buffer. If you had a large dataset, you would always get error -1 because the line length was be too long. This patch extends the buffer. Signed-off-by: Colin McCabe Signed-off-by: Florian Forster --- src/csv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/csv.c b/src/csv.c index 96c1e3e7..f149edc0 100644 --- a/src/csv.c +++ b/src/csv.c @@ -263,7 +263,7 @@ static int csv_write (const data_set_t *ds, const value_list_t *vl, { struct stat statbuf; char filename[512]; - char values[512]; + char values[4096]; FILE *csv; int csv_fd; struct flock fl; -- 2.30.2