From df4167c93d6df2d869dc72025ef2866d07fafbda Mon Sep 17 00:00:00 2001 From: oetiker Date: Tue, 23 Jan 2007 08:28:56 +0000 Subject: [PATCH] read up to full potential length of gdp->rrd git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@974 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_graph_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/src/rrd_graph_helper.c b/program/src/rrd_graph_helper.c index 1781fa3b..c232078b 100644 --- a/program/src/rrd_graph_helper.c +++ b/program/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; -- 2.30.2