summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 14bce78)
raw | patch | inline | side by side (parent: 14bce78)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 22 Oct 2006 21:09:27 +0000 (21:09 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 22 Oct 2006 21:09:27 +0000 (21:09 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@907 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_graph.c | patch | blob | history |
diff --git a/src/rrd_graph.c b/src/rrd_graph.c
index a16734ba4175faa76240e2c66ad7d9e4104a7305..7018032528b792303e7c82a459445c863bd2d51f 100644 (file)
--- a/src/rrd_graph.c
+++ b/src/rrd_graph.c
} else {
prt_fctn = '\0';
}
+ /* only valid control codes */
+ if (prt_fctn != 'l' &&
+ prt_fctn != 'r' &&
+ prt_fctn != 'j' &&
+ prt_fctn != 't' &&
+ prt_fctn != '\0' &&
+ prt_fctn != 'g' ) {
+ free(legspace);
+ rrd_set_error("Uknown control code at the end of '%s\\%c'",im->gdes[i].legend,prt_fctn);
+ return -1;
+
+ }
/* remove exess space */
while (prt_fctn=='g' &&
leg_cc > 0 &&