]> sigrok.org Git - libsigrok.git/commitdiff
Gnuplot quickfix: Increase malloc()'ed size.
authorUwe Hermann <redacted>
Sun, 9 May 2010 13:02:17 +0000 (15:02 +0200)
committerUwe Hermann <redacted>
Sun, 9 May 2010 20:06:28 +0000 (22:06 +0200)
output/output_gnuplot.c

index a0d5a8fcb6835d55d345797208d716427edf5f80..3a3e7496f08fefea0f023e5eff775a5ad8807c8f 100644 (file)
@@ -153,7 +153,7 @@ static int data(struct output *o, char *data_in, uint64_t length_in,
                outsize = strlen(ctx->header);
 
        /* FIXME: Use realloc(). */
-       if (!(outbuf = calloc(1, outsize + 1 + 10000)))
+       if (!(outbuf = calloc(1, outsize + 1 + 1000000)))
                return SIGROK_ERR_MALLOC; /* TODO: free()? What to free? */
 
        outbuf[0] = '\0';