X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_error.c;h=acb8ff840957482481561fbeb3e6ae172f12a703;hb=9e6db622e8756105c1322481b34650ecbe15da1a;hp=794c085159040ad7cc862501edfd0a8bd4b6891b;hpb=96db36a7a6ff75d2fc1353e45434a7f6b1db801b;p=rrdtool.git diff --git a/src/rrd_error.c b/src/rrd_error.c index 794c085..acb8ff8 100644 --- a/src/rrd_error.c +++ b/src/rrd_error.c @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.2.7 Copyright by Tobi Oetiker, 1997-2005 + * RRDtool 1.2.14 Copyright by Tobi Oetiker, 1997-2006 ***************************************************************************** * rrd_error.c Common Header File ***************************************************************************** @@ -111,8 +111,8 @@ rrd_new_context(void) { if (rrd_ctx) { rrd_ctx->len = 0; - rrd_ctx->rrd_error = malloc(MAXLEN); - rrd_ctx->lib_errstr = malloc(ERRBUFLEN); + rrd_ctx->rrd_error = malloc(MAXLEN+10); + rrd_ctx->lib_errstr = malloc(ERRBUFLEN+10); if (rrd_ctx->rrd_error && rrd_ctx->lib_errstr) { *rrd_ctx->rrd_error = 0; *rrd_ctx->lib_errstr = 0;