[GRASS-SVN] r43717 - grass/trunk/raster/r.statistics

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Sep 27 16:12:03 EDT 2010


Author: glynn
Date: 2010-09-27 20:12:03 +0000 (Mon, 27 Sep 2010)
New Revision: 43717

Modified:
   grass/trunk/raster/r.statistics/run_cmd.c
Log:
Fix breakage introduced by r.reclass requiring rules=- (r42423)


Modified: grass/trunk/raster/r.statistics/run_cmd.c
===================================================================
--- grass/trunk/raster/r.statistics/run_cmd.c	2010-09-27 19:57:18 UTC (rev 43716)
+++ grass/trunk/raster/r.statistics/run_cmd.c	2010-09-27 20:12:03 UTC (rev 43717)
@@ -33,7 +33,7 @@
 {
     char input[6 + GNAME_MAX + 1 + GMAPSET_MAX + 1];
     char output[7 + GNAME_MAX + 1];
-    const char *argv[4];
+    const char *argv[5];
     FILE *fp;
 
     sprintf(input, "input=%s", basemap);
@@ -42,7 +42,8 @@
     argv[0] = "r.reclass";
     argv[1] = input;
     argv[2] = output;
-    argv[3] = NULL;
+    argv[3] = "rules=-";
+    argv[4] = NULL;
 
     fp = G_popen_write(child, argv[0], argv);
     if (!fp)



More information about the grass-commit mailing list