[GRASS-SVN] r58112 - grass/branches/releasebranch_6_4/raster/r.kappa

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Oct 27 15:46:40 PDT 2013


Author: hamish
Date: 2013-10-27 15:46:40 -0700 (Sun, 27 Oct 2013)
New Revision: 58112

Modified:
   grass/branches/releasebranch_6_4/raster/r.kappa/stats.c
Log:
quote filename to allow for spaces in GISDBASE (merge from devbr6, #2116)

Modified: grass/branches/releasebranch_6_4/raster/r.kappa/stats.c
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.kappa/stats.c	2013-10-27 22:45:46 UTC (rev 58111)
+++ grass/branches/releasebranch_6_4/raster/r.kappa/stats.c	2013-10-27 22:46:40 UTC (rev 58112)
@@ -41,8 +41,9 @@
     strcat(buf, G_fully_qualified_name(maps[1], mmapset));
     strcat(buf, ",");
     strcat(buf, G_fully_qualified_name(maps[0], rmapset));
-    strcat(buf, " > ");
+    strcat(buf, " > \"");
     strcat(buf, stats_file);
+    strcat(buf, "\"");
 
     if (system(buf)) {
 	unlink(stats_file);



More information about the grass-commit mailing list