summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 278acea)
raw | patch | inline | side by side (parent: 278acea)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 23 Jan 2007 08:28:56 +0000 (08:28 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 23 Jan 2007 08:28:56 +0000 (08:28 +0000) |
program/src/rrd_graph_helper.c | patch | blob | history |
index 1781fa3b088279b60f3009cf0dcd78b51635f86f..c232078b0bd88b7520523b85e88860fd4c42d1a3 100644 (file)
@@ -633,7 +633,7 @@ rrd_parse_def(const char *const line, unsigned int *const eaten, graph_desc_t *c
dprintf("- from line '%s'\n",line);
if (rrd_parse_make_vname(line,eaten,gdp,im)) return 1;
- i=scan_for_col(&line[*eaten],254,gdp->rrd);
+ i=scan_for_col(&line[*eaten],sizeof(gdp->rrd)-1,gdp->rrd);
if (line[*eaten+i]!=':') {
rrd_set_error("Problems reading database name");
return 1;