summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 098d92f)
raw | patch | inline | side by side (parent: 098d92f)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 7 Nov 2008 22:46:40 +0000 (22:46 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 7 Nov 2008 22:46:40 +0000 (22:46 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3/program@1653 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 a2625d56a70f35bb96b30bbe1eefc1ac65d39f2f..46bf73646b7c116415af1586534a958e8b7c5eab 100644 (file)
--- a/src/rrd_graph.c
+++ b/src/rrd_graph.c
if (size > 0) {
rrd_set_font_desc(im,propidx,NULL,size);
}
- if ((int) strlen(optarg) > end) {
+ if ((int) strlen(optarg) > end+2) {
if (optarg[end] == ':') {
rrd_set_font_desc(im,propidx,optarg + end + 1,0);
} else {