From 63e89b3e11764a5e0ddb458f9d264d1702c442bb Mon Sep 17 00:00:00 2001 From: oetiker Date: Fri, 7 Nov 2008 22:46:40 +0000 Subject: [PATCH] fixed --font TITLE:12: problem -- tobi git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3@1653 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index a2625d56..46bf7364 100644 --- a/program/src/rrd_graph.c +++ b/program/src/rrd_graph.c @@ -4135,7 +4135,7 @@ void rrd_graph_options( 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 { -- 2.30.2