[GRASS-SVN] r39491 - grass/branches/releasebranch_6_4/raster/r.watershed/front

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Oct 11 22:01:06 EDT 2009


Author: hamish
Date: 2009-10-11 22:01:06 -0400 (Sun, 11 Oct 2009)
New Revision: 39491

Modified:
   grass/branches/releasebranch_6_4/raster/r.watershed/front/main.c
Log:
hack to make sure string doesn't end with " (merge from devbr6)

Modified: grass/branches/releasebranch_6_4/raster/r.watershed/front/main.c
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.watershed/front/main.c	2009-10-12 02:00:54 UTC (rev 39490)
+++ grass/branches/releasebranch_6_4/raster/r.watershed/front/main.c	2009-10-12 02:01:06 UTC (rev 39491)
@@ -351,6 +351,11 @@
 	strcat(command, "\"");
     }
 
+#ifdef __MINGW32__
+    /* quoting seems to be greedy, so hack to make sure string doesn't end with \" */
+    strcat(command, " ");
+#endif
+
     G_debug(1, "Mode: %s", flag_seg->answer ? "Segmented" : "All in RAM");
     G_debug(1, "Running: %s", command);
 



More information about the grass-commit mailing list