[GRASS-SVN] r57316 - grass/trunk/display/d.linegraph

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jul 29 01:35:44 PDT 2013


Author: hamish
Date: 2013-07-29 01:35:43 -0700 (Mon, 29 Jul 2013)
New Revision: 57316

Modified:
   grass/trunk/display/d.linegraph/main.c
Log:
another fix for 'error: format not a string literal and no format arguments [-Werror=format-security]'

Modified: grass/trunk/display/d.linegraph/main.c
===================================================================
--- grass/trunk/display/d.linegraph/main.c	2013-07-29 08:22:20 UTC (rev 57315)
+++ grass/trunk/display/d.linegraph/main.c	2013-07-29 08:35:43 UTC (rev 57316)
@@ -562,7 +562,7 @@
     D_text(xlabel);
 
     /* top label */
-    sprintf(xlabel, title[2]->answer);
+    sprintf(xlabel, "%s", title[2]->answer);
     text_height = (b - t) * TEXT_HEIGHT;
     text_width = (r - l) * TEXT_WIDTH * 2.0;
     D_text_size(text_width, text_height);



More information about the grass-commit mailing list