projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix for debian bug 359071 ... reporting the long cdef in the error message was too...
[rrdtool.git]
/
src
/
rrd_error.c
diff --git
a/src/rrd_error.c
b/src/rrd_error.c
index
df675a2
..
ced26b5
100644
(file)
--- a/
src/rrd_error.c
+++ b/
src/rrd_error.c
@@
-111,8
+111,8
@@
rrd_new_context(void) {
if (rrd_ctx) {
rrd_ctx->len = 0;
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;
if (rrd_ctx->rrd_error && rrd_ctx->lib_errstr) {
*rrd_ctx->rrd_error = 0;
*rrd_ctx->lib_errstr = 0;