Browse Source

hack to make sure string doesn't end with " (merge from devbr6)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@39490 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 15 years ago
parent
commit
8b918b832c
1 changed files with 5 additions and 0 deletions
  1. 5 0
      raster/r.watershed/front/main.c

+ 5 - 0
raster/r.watershed/front/main.c

@@ -393,6 +393,11 @@ int main(int argc, char *argv[])
 	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);