Code

prepare for the release of rrdtool-1.2.15
[rrdtool.git] / src / rrd_error.c
index afb5cee74b8d5086b57156333cf501e0596f97ee..a102b1fe48063114d15f8b0ddf68f1de529d909f 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * RRDtool 1.2rc5  Copyright by Tobi Oetiker, 1997-2005
+ * RRDtool 1.2.15  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;