From: oetiker Date: Fri, 7 Nov 2008 22:46:40 +0000 (+0000) Subject: fixed --font TITLE:12: problem -- tobi X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d884f3b31d8cbecf1451e684ab3e02fb3c18c8b7;p=rrdtool-all.git fixed --font TITLE:12: problem -- tobi git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1653 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index db7d5353..b6d5bebb 100644 --- a/program/src/rrd_graph.c +++ b/program/src/rrd_graph.c @@ -4172,7 +4172,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 {