summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a10e831)
raw | patch | inline | side by side (parent: a10e831)
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) |
program/src/rrd_graph.c | patch | blob | history |
index db7d5353e610e6432d1a530001a2fa9e3f13e5c3..b6d5bebb4b88dd4c01bd682a2a5535aed1875334 100644 (file)
--- a/program/src/rrd_graph.c
+++ b/program/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 {