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=71ce844d07c2f7cd5d8ec591e0b1e328a0f2820a;p=rrdtool-all.git fixed --font TITLE:12: problem -- tobi git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@1653 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index 139b4455..4e05d04d 100644 --- a/program/src/rrd_graph.c +++ b/program/src/rrd_graph.c @@ -3641,7 +3641,7 @@ rrd_graph_options(int argc, char *argv[],image_desc_t *im) 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';