[GRASS-SVN] r67057 - in grass/trunk: general/g.proj imagery/i.topo.corr lib/vector/dglib/examples

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Dec 10 14:06:51 PST 2015


Author: martinl
Date: 2015-12-10 14:06:51 -0800 (Thu, 10 Dec 2015)
New Revision: 67057

Modified:
   grass/trunk/general/g.proj/create.c
   grass/trunk/imagery/i.topo.corr/main.c
   grass/trunk/lib/vector/dglib/examples/components.c
Log:
several modules: snprintf() -> G_snprintf()

Modified: grass/trunk/general/g.proj/create.c
===================================================================
--- grass/trunk/general/g.proj/create.c	2015-12-10 19:56:16 UTC (rev 67056)
+++ grass/trunk/general/g.proj/create.c	2015-12-10 22:06:51 UTC (rev 67057)
@@ -77,9 +77,9 @@
     
     /* if inputs were not clean it should of failed by now */
     if (location) {
-        snprintf(path, sizeof(path), "%s%c%s%c%s%c%s", G_gisdbase(), HOST_DIRSEP, 
-                 location, HOST_DIRSEP,
-                 "PERMANENT", HOST_DIRSEP, "PROJ_EPSG");
+        G_snprintf(path, sizeof(path), "%s%c%s%c%s%c%s", G_gisdbase(), HOST_DIRSEP, 
+                   location, HOST_DIRSEP,
+                   "PERMANENT", HOST_DIRSEP, "PROJ_EPSG");
         path[sizeof(path)-1] = '\0';
     }
     else {

Modified: grass/trunk/imagery/i.topo.corr/main.c
===================================================================
--- grass/trunk/imagery/i.topo.corr/main.c	2015-12-10 19:56:16 UTC (rev 67056)
+++ grass/trunk/imagery/i.topo.corr/main.c	2015-12-10 22:06:51 UTC (rev 67057)
@@ -179,8 +179,8 @@
 	    }
 	    /* ----- */
 	    dem.fd = Rast_open_old(base->answer, "");
-	    snprintf(out.name, GNAME_MAX - 1, "%s.%s", output->answer,
-		     input->answers[i]);
+	    G_snprintf(out.name, GNAME_MAX - 1, "%s.%s", output->answer,
+                       input->answers[i]);
 	    out.fd = Rast_open_new(out.name, DCELL_TYPE);
 	    out.rast = Rast_allocate_buf(out.type);
 	    band.rast = Rast_allocate_buf(band.type);

Modified: grass/trunk/lib/vector/dglib/examples/components.c
===================================================================
--- grass/trunk/lib/vector/dglib/examples/components.c	2015-12-10 19:56:16 UTC (rev 67056)
+++ grass/trunk/lib/vector/dglib/examples/components.c	2015-12-10 22:06:51 UTC (rev 67057)
@@ -112,8 +112,8 @@
 
 	if (dglGet_EdgeCount(&agraphComponents[i]) > 0) {
 	    if (pszGraphOut) {
-		snprintf(szGraphOutFilename, sizeof(szGraphOutFilename),
-			 "%s-component-%d", pszGraphOut, i);
+		G_snprintf(szGraphOutFilename, sizeof(szGraphOutFilename),
+                           "%s-component-%d", pszGraphOut, i);
 		printf("[write <%s>...", szGraphOutFilename);
 		fflush(stdout);
 		if ((fd =



More information about the grass-commit mailing list