From: Colin Patrick McCabe Date: Wed, 27 Jul 2011 17:00:30 +0000 (-0700) Subject: src/csv.c: use a bigger buffer X-Git-Tag: collectd-4.10.4~16 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=7274cb052668eab0cd7dcb5d48d4dec75ae707b3;p=collectd.git 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 --- 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;