[GRASS-SVN] r59570 - in grass/trunk: lib/raster3d misc/m.cogo
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Apr 3 08:46:25 PDT 2014
Author: neteler
Date: 2014-04-03 08:46:25 -0700 (Thu, 03 Apr 2014)
New Revision: 59570
Modified:
grass/trunk/lib/raster3d/windowio.c
grass/trunk/misc/m.cogo/main.c
Log:
string format fixes (from Volker Froehlich)
Modified: grass/trunk/lib/raster3d/windowio.c
===================================================================
--- grass/trunk/lib/raster3d/windowio.c 2014-04-03 15:46:13 UTC (rev 59569)
+++ grass/trunk/lib/raster3d/windowio.c 2014-04-03 15:46:25 UTC (rev 59570)
@@ -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/trunk/misc/m.cogo/main.c
===================================================================
--- grass/trunk/misc/m.cogo/main.c 2014-04-03 15:46:13 UTC (rev 59569)
+++ grass/trunk/misc/m.cogo/main.c 2014-04-03 15:46:25 UTC (rev 59570)
@@ -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