Code

src/csv.c: use a bigger buffer
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Wed, 27 Jul 2011 17:00:30 +0000 (10:00 -0700)
committerFlorian Forster <octo@huhu.verplant.org>
Mon, 1 Aug 2011 15:07:27 +0000 (17:07 +0200)
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 <colin.mccabe@dreamhost.com>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/csv.c

index 96c1e3e7aba250179d6c950abbdb12f5fc7d7def..f149edc0df9fe74bdbb380b2c8387d8b9b1810b5 100644 (file)
--- 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;