diff --git a/src/rrd_graph.c b/src/rrd_graph.c
index db7d5353e610e6432d1a530001a2fa9e3f13e5c3..b6d5bebb4b88dd4c01bd682a2a5535aed1875334 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 {