summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 49c9106)
raw | patch | inline | side by side (parent: 49c9106)
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.2/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 139b44558211002a476ca85ef69210bf195932e8..4e05d04dc3ad20e25166fce97d0a7a90535acbed 100644 (file)
--- a/src/rrd_graph.c
+++ b/src/rrd_graph.c
if (size > 0){
im->text_prop[propidx].size=size;
}
- if ((int)strlen(optarg) > end){
+ if ((int)strlen(optarg) > end+2){
if (optarg[end] == ':'){
strncpy(im->text_prop[propidx].font,optarg+end+1,255);
im->text_prop[propidx].font[255] = '\0';