[GRASS-SVN] r57359 - grass/branches/develbranch_6/display/d.nviz

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 2 01:25:54 PDT 2013


Author: hamish
Date: 2013-08-02 01:25:54 -0700 (Fri, 02 Aug 2013)
New Revision: 57359

Modified:
   grass/branches/develbranch_6/display/d.nviz/main.c
Log:
avoid 'format not a string literal and no format arguments' warnings

Modified: grass/branches/develbranch_6/display/d.nviz/main.c
===================================================================
--- grass/branches/develbranch_6/display/d.nviz/main.c	2013-08-02 08:17:00 UTC (rev 57358)
+++ grass/branches/develbranch_6/display/d.nviz/main.c	2013-08-02 08:25:54 UTC (rev 57359)
@@ -188,7 +188,7 @@
 
     /* Set Image name */
     if (parm.name->answer)
-	sprintf(img_name, parm.name->answer);
+	sprintf(img_name, "%s", parm.name->answer);
     else
 	sprintf(img_name, "NVIZ");
 
@@ -388,8 +388,7 @@
     G_close_cell(fd);
     fclose(fp);
 
-    sprintf(buf1, _("Created NVIZ script <%s>."), outfile);
-    G_done_msg(buf1);
+    G_done_msg(_("Created NVIZ script <%s>."), outfile);
 
     exit(EXIT_SUCCESS);
 



More information about the grass-commit mailing list