Gnuplot quickfix: Increase malloc()'ed size.

This commit is contained in:
Uwe Hermann 2010-05-09 15:02:17 +02:00
parent 5cca9adbf2
commit 1e32053cd0
1 changed files with 1 additions and 1 deletions

View 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';