summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b997493)
raw | patch | inline | side by side (parent: b997493)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 4 Dec 2008 09:03:48 +0000 (09:03 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 4 Dec 2008 09:03:48 +0000 (09:03 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1691 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_graph_helper.c | patch | blob | history |
diff --git a/src/rrd_graph_helper.c b/src/rrd_graph_helper.c
index 0a12c057cff4c4776cfe99f6f68503197b4c01b0..44b2c043b2762f4b2db7704aba9f5e3839dacaf3 100644 (file)
--- a/src/rrd_graph_helper.c
+++ b/src/rrd_graph_helper.c
@@ -606,6 +606,10 @@ rrd_parse_make_vname(const char *const line, unsigned int *const eaten, graph_de
rrd_set_error("Cannot parse vname from '%s'",line);
return 1;
}
+ if (line[*eaten+i] == '\0') {
+ rrd_set_error("String ends after the = sign on '%s'", line);
+ return 1;
+ }
dprintf("- found candidate '%s'\n",tmpstr);
if ((gdp->vidx=find_var(im,tmpstr))>=0) {