[GRASS-SVN] r39516 - grass/trunk/raster/r.watershed/front
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Oct 13 21:02:25 EDT 2009
Author: hamish
Date: 2009-10-13 21:02:23 -0400 (Tue, 13 Oct 2009)
New Revision: 39516
Modified:
grass/trunk/raster/r.watershed/front/main.c
Log:
all tricks fail on wingrass (trac #783; merge from devbr6)
Modified: grass/trunk/raster/r.watershed/front/main.c
===================================================================
--- grass/trunk/raster/r.watershed/front/main.c 2009-10-13 22:41:37 UTC (rev 39515)
+++ grass/trunk/raster/r.watershed/front/main.c 2009-10-14 01:02:23 UTC (rev 39516)
@@ -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_sfd->answer) {
strcat(command, " -s");
@@ -393,11 +393,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