[GRASS-SVN] r39487 - grass/branches/develbranch_6/raster/r.watershed/front

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Oct 11 18:20:25 EDT 2009


Author: hamish
Date: 2009-10-11 18:20:24 -0400 (Sun, 11 Oct 2009)
New Revision: 39487

Modified:
   grass/branches/develbranch_6/raster/r.watershed/front/main.c
Log:
hack to make sure string doesn't end with "

Modified: grass/branches/develbranch_6/raster/r.watershed/front/main.c
===================================================================
--- grass/branches/develbranch_6/raster/r.watershed/front/main.c	2009-10-11 11:40:27 UTC (rev 39486)
+++ grass/branches/develbranch_6/raster/r.watershed/front/main.c	2009-10-11 22:20:24 UTC (rev 39487)
@@ -392,6 +392,11 @@
 	strcat(command, opt17->answer);
     }
 
+#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