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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Oct 13 18:36:29 EDT 2009


Author: hamish
Date: 2009-10-13 18:36:28 -0400 (Tue, 13 Oct 2009)
New Revision: 39514

Modified:
   grass/branches/develbranch_6/raster/r.watershed/front/main.c
Log:
all tricks fail on wingrass (trac #783)

Modified: grass/branches/develbranch_6/raster/r.watershed/front/main.c
===================================================================
--- grass/branches/develbranch_6/raster/r.watershed/front/main.c	2009-10-13 18:19:38 UTC (rev 39513)
+++ grass/branches/develbranch_6/raster/r.watershed/front/main.c	2009-10-13 22:36:28 UTC (rev 39514)
@@ -264,12 +264,12 @@
     }
 
     /* Build command line */
-    sprintf(command, "\"%s/etc/", G_gisbase());
+    sprintf(command, "%s/etc/", G_gisbase());
 
     if (flag_seg->answer)
-	strcat(command, "r.watershed.seg\"");
+	strcat(command, "r.watershed.seg");
     else
-	strcat(command, "r.watershed.ram\"");
+	strcat(command, "r.watershed.ram");
 
     if (!flag_mfd->answer) {
 	strcat(command, " -s");
@@ -392,11 +392,6 @@
 	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