Code

make sure the font path is shorter than the buffer
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 3 Apr 2005 11:11:21 +0000 (11:11 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 3 Apr 2005 11:11:21 +0000 (11:11 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@332 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_graph.c

index 37e19612037fda6f5b0d62ca052f16ebc484564e..3be36d066da81bdc388f551812314579860ba45e 100644 (file)
@@ -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){