[GRASS-SVN] r59569 - in grass/branches/releasebranch_7_0: lib/raster3d misc/m.cogo

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Apr 3 08:46:13 PDT 2014


Author: neteler
Date: 2014-04-03 08:46:13 -0700 (Thu, 03 Apr 2014)
New Revision: 59569

Modified:
   grass/branches/releasebranch_7_0/lib/raster3d/windowio.c
   grass/branches/releasebranch_7_0/misc/m.cogo/main.c
Log:
string format fixes (from Volker Froehlich)

Modified: grass/branches/releasebranch_7_0/lib/raster3d/windowio.c
===================================================================
--- grass/branches/releasebranch_7_0/lib/raster3d/windowio.c	2014-04-03 09:25:22 UTC (rev 59568)
+++ grass/branches/releasebranch_7_0/lib/raster3d/windowio.c	2014-04-03 15:46:13 UTC (rev 59569)
@@ -71,7 +71,7 @@
 	windowName++;
 
     if (strchr(windowName, GRASS_DIRSEP) || strchr(windowName, HOST_DIRSEP)) {
-	sprintf(path, windowName);
+	sprintf(path, "%s", windowName);
 	return;
     }
 
@@ -108,7 +108,7 @@
    else
    G_file_name (path, RASTER3D_WINDOW_DATABASE, windowName, G_mapset ());
    } else
-   sprintf (path, windowName);
+   sprintf (path, "%s", windowName);
    p = path;
    slash = NULL;
    while (*p != 0) {

Modified: grass/branches/releasebranch_7_0/misc/m.cogo/main.c
===================================================================
--- grass/branches/releasebranch_7_0/misc/m.cogo/main.c	2014-04-03 09:25:22 UTC (rev 59568)
+++ grass/branches/releasebranch_7_0/misc/m.cogo/main.c	2014-04-03 15:46:13 UTC (rev 59569)
@@ -329,7 +329,7 @@
 
 	if (!parse_line(cptr, &record)) {
 	    if (verbose)
-		G_warning(_("Input parse error on line %d"), linenum);
+		G_warning(_("Input parse error on line %lu"), linenum);
 	    continue;
 	}
 



More information about the grass-commit mailing list