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

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Oct 17 07:15:08 EDT 2009


Author: mmetz
Date: 2009-10-17 07:15:08 -0400 (Sat, 17 Oct 2009)
New Revision: 39543

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

Modified: grass/trunk/raster/r.watershed/front/main.c
===================================================================
--- grass/trunk/raster/r.watershed/front/main.c	2009-10-17 11:14:51 UTC (rev 39542)
+++ grass/trunk/raster/r.watershed/front/main.c	2009-10-17 11:15:08 UTC (rev 39543)
@@ -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_sfd->answer) {
 	strcat(command, " -s");
     }
@@ -393,6 +401,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