Browse Source

several modules: snprintf() -> G_snprintf()

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67057 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 years ago
parent
commit
01eb8fa7fd
3 changed files with 7 additions and 7 deletions
  1. 3 3
      general/g.proj/create.c
  2. 2 2
      imagery/i.topo.corr/main.c
  3. 2 2
      lib/vector/dglib/examples/components.c

+ 3 - 3
general/g.proj/create.c

@@ -77,9 +77,9 @@ void create_epsg(const char *location, const char *epsg)
     
     /* 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 {

+ 2 - 2
imagery/i.topo.corr/main.c

@@ -179,8 +179,8 @@ int main(int argc, char *argv[])
 	    }
 	    /* ----- */
 	    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);

+ 2 - 2
lib/vector/dglib/examples/components.c

@@ -112,8 +112,8 @@ int main(int argc, char **argv)
 
 	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 =