summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ed31f16)
raw | patch | inline | side by side (parent: ed31f16)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 6 Jun 2008 16:38:25 +0000 (16:38 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 6 Jun 2008 16:38:25 +0000 (16:38 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1403 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 3ee158254aec58c97e5890322d03fd2a9b92b2e4..4d747d08bc41b71514fa92cfc2d5c12116f7fe61 100644 (file)
--- a/src/rrd_graph.c
+++ b/src/rrd_graph.c
if (size > 0){
im->text_prop[propidx].size=size;
}
- if (strlen(prop) > end){
- if (prop[end] == ':'){
- strncpy(im->text_prop[propidx].font,prop+end+1,255);
+ if (strlen(optarg) > end){
+ if (optarg[end] == ':'){
+ strncpy(im->text_prop[propidx].font,optarg+end+1,255);
im->text_prop[propidx].font[255] = '\0';
} else {
- rrd_set_error("expected after font size in '%s'",prop);
+ rrd_set_error("expected : after font size in '%s'",optarg);
return;
}
}
+ /* only run the for loop for DEFAULT (0) for
+ all others, we break here. woodo programming */
if (propidx==sindex && sindex != 0) break;
}
} else {