X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_graph_helper.c;h=654df9aff05b989bba8f3f3652ee1bd876d45f07;hb=6801c3fb1c505c5534218100fab7888e140ca359;hp=916af5b4b93eefac0dc2e664234cb0435f1be33c;hpb=3882bb0c2d15f97298aaa7602d6353a1888f5547;p=rrdtool.git diff --git a/src/rrd_graph_helper.c b/src/rrd_graph_helper.c index 916af5b..654df9a 100644 --- a/src/rrd_graph_helper.c +++ b/src/rrd_graph_helper.c @@ -1,5 +1,5 @@ /**************************************************************************** - * RRDtool 1.2.16 Copyright by Tobi Oetiker, 1997-2006 + * RRDtool 1.2.18 Copyright by Tobi Oetiker, 1997-2006 **************************************************************************** * rrd_graph_helper.c commandline parser functions * this code initially written by Alex van den Bogaerdt @@ -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;