[GRASS-SVN] r39458 - in grass/trunk/raster/r.watershed: front shed

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Oct 10 02:21:19 EDT 2009


Author: hamish
Date: 2009-10-10 02:21:17 -0400 (Sat, 10 Oct 2009)
New Revision: 39458

Modified:
   grass/trunk/raster/r.watershed/front/main.c
   grass/trunk/raster/r.watershed/shed/com_line.c
Log:
quote G_gisbase() for system() (merge from r38436), typo

Modified: grass/trunk/raster/r.watershed/front/main.c
===================================================================
--- grass/trunk/raster/r.watershed/front/main.c	2009-10-10 06:03:36 UTC (rev 39457)
+++ grass/trunk/raster/r.watershed/front/main.c	2009-10-10 06:21:17 UTC (rev 39458)
@@ -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");

Modified: grass/trunk/raster/r.watershed/shed/com_line.c
===================================================================
--- grass/trunk/raster/r.watershed/shed/com_line.c	2009-10-10 06:03:36 UTC (rev 39457)
+++ grass/trunk/raster/r.watershed/shed/com_line.c	2009-10-10 06:21:17 UTC (rev 39458)
@@ -5,7 +5,7 @@
 #include "string.h"
 
 /* make sure any useful info is transfered to the man page before ripping out the interactive help messages */
-/* in addition there seem to be some useful user options here which are not currently available from the main parrser */
+/* in addition there seem to be some useful user options here which are not currently available from the main parser */
 int com_line_Gwater(INPUT * input, OUTPUT * output)
 {
     struct Cell_head *window;



More information about the grass-commit mailing list