[GRASS-SVN] r57360 - grass/trunk/misc/m.nviz.script

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 2 01:26:00 PDT 2013


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

Modified:
   grass/trunk/misc/m.nviz.script/main.c
Log:
avoid 'format not a string literal and no format arguments' warnings (merge from devbr6)

Modified: grass/trunk/misc/m.nviz.script/main.c
===================================================================
--- grass/trunk/misc/m.nviz.script/main.c	2013-08-02 08:25:54 UTC (rev 57359)
+++ grass/trunk/misc/m.nviz.script/main.c	2013-08-02 08:25:59 UTC (rev 57360)
@@ -186,7 +186,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");
 
@@ -321,8 +321,7 @@
     Rast_close(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