[GRASS-SVN] r39541 -
grass/branches/releasebranch_6_4/raster/r.watershed/front
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Oct 17 07:14:12 EDT 2009
Author: mmetz
Date: 2009-10-17 07:14:11 -0400 (Sat, 17 Oct 2009)
New Revision: 39541
Modified:
grass/branches/releasebranch_6_4/raster/r.watershed/front/main.c
Log:
fix for ticket #783
Modified: grass/branches/releasebranch_6_4/raster/r.watershed/front/main.c
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.watershed/front/main.c 2009-10-17 11:02:52 UTC (rev 39540)
+++ grass/branches/releasebranch_6_4/raster/r.watershed/front/main.c 2009-10-17 11:14:11 UTC (rev 39541)
@@ -233,13 +233,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_flow->answer)
strcat(command, " -4");
@@ -351,6 +359,10 @@
strcat(command, "\"");
}
+#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