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

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Oct 17 07:14:51 EDT 2009


Author: mmetz
Date: 2009-10-17 07:14:51 -0400 (Sat, 17 Oct 2009)
New Revision: 39542

Modified:
   grass/branches/develbranch_6/raster/r.watershed/front/main.c
Log:
fix for ticket #783 (backport from r39541)

Modified: grass/branches/develbranch_6/raster/r.watershed/front/main.c
===================================================================
--- grass/branches/develbranch_6/raster/r.watershed/front/main.c	2009-10-17 11:14:11 UTC (rev 39541)
+++ grass/branches/develbranch_6/raster/r.watershed/front/main.c	2009-10-17 11:14:51 UTC (rev 39542)
@@ -264,13 +264,21 @@
     }
 
     /* Build command line */
+#ifdef __MINGW32__
+    sprintf(command, "\"\"%s/etc/", G_gisbase());
+#else
     sprintf(command, "%s/etc/", G_gisbase());
+#endif
 
     if (flag_seg->answer)
 	strcat(command, "r.watershed.seg");
     else
 	strcat(command, "r.watershed.ram");
 
+#ifdef __MINGW32__
+    strcat(command, "\"");
+#endif
+
     if (!flag_mfd->answer) {
 	strcat(command, " -s");
     }
@@ -392,6 +400,10 @@
 	strcat(command, opt17->answer);
     }
 
+#ifdef __MINGW32__
+    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