[GRASS-SVN] r39490 - grass/trunk/raster/r.watershed/front

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Oct 11 22:00:55 EDT 2009


Author: hamish
Date: 2009-10-11 22:00:54 -0400 (Sun, 11 Oct 2009)
New Revision: 39490

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

Modified: grass/trunk/raster/r.watershed/front/main.c
===================================================================
--- grass/trunk/raster/r.watershed/front/main.c	2009-10-12 02:00:32 UTC (rev 39489)
+++ grass/trunk/raster/r.watershed/front/main.c	2009-10-12 02:00:54 UTC (rev 39490)
@@ -393,6 +393,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