X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Frrd_graph_helper.c;h=c232078b0bd88b7520523b85e88860fd4c42d1a3;hb=b5fa07df1c06bd87a6c34a2351a4cd065ba6778b;hp=1781fa3b088279b60f3009cf0dcd78b51635f86f;hpb=734468bcc23497c7eba0deba87c92aa219fd46d1;p=rrdtool.git diff --git a/src/rrd_graph_helper.c b/src/rrd_graph_helper.c index 1781fa3..c232078 100644 --- a/src/rrd_graph_helper.c +++ b/src/rrd_graph_helper.c @@ -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;