From 58d18a05dd8c3536100318951bc468cd8c80a05e 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.2/program@1653 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 139b445..4e05d04 100644 --- a/src/rrd_graph.c +++ b/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'; -- 2.30.2