Gnuplot quickfix: Increase malloc()'ed size.
This commit is contained in:
parent
5cca9adbf2
commit
1e32053cd0
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue