From: Tobias Oetiker Date: Sun, 3 Apr 2005 11:11:21 +0000 (+0000) Subject: make sure the font path is shorter than the buffer X-Git-Tag: 1.2rc1~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e01668df991d9763c05c6b9903ce5cd2e80f3aff;p=thirdparty%2Frrdtool-1.x.git make sure the font path is shorter than the buffer git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@332 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 37e19612..3be36d06 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -2978,7 +2978,7 @@ rrd_graph_options(int argc, char *argv[],image_desc_t *im) char font[1024]; if(sscanf(optarg, - "%10[A-Z]:%lf:%s", + "%10[A-Z]:%lf:%1000s", prop,&size,font) == 3){ int sindex; if((sindex=text_prop_conv(prop)) != -1){