From: Uwe Hermann Date: Sun, 9 May 2010 13:02:17 +0000 (+0200) Subject: Gnuplot quickfix: Increase malloc()'ed size. X-Git-Tag: libsigrok-0.1.0~513 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=1e32053cd0a8e42e628cf832d81360b96c8de97d;p=libsigrok.git Gnuplot quickfix: Increase malloc()'ed size. --- diff --git a/output/output_gnuplot.c b/output/output_gnuplot.c index a0d5a8fc..3a3e7496 100644 --- a/output/output_gnuplot.c +++ b/output/output_gnuplot.c @@ -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';