Code

complete segfault fix for second axis %s format begun in r2123 (thanks Martin Pelikan...
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 12 Aug 2012 14:37:31 +0000 (14:37 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 12 Aug 2012 14:37:31 +0000 (14:37 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4@2297 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_graph.c

index 7afd5bb4fdeb7e2ff9d8b49b768753d2ceb12750..dd1b20826191960c7d2c8b06be4bd2427221cc27 100644 (file)
@@ -2104,7 +2104,7 @@ int draw_horizontal_grid(
                             }
                         }
                         else {
-                           sprintf(graph_label_right,im->second_axis_format,sval);
+                           sprintf(graph_label_right,im->second_axis_format,sval,"");
                         }
                         gfx_text ( im,
                                X1+7, Y0,