Pārlūkot izejas kodu

apply https://trac.osgeo.org/grass/changeset/45358 also here, fixes trac https://trac.osgeo.org/grass/ticket/1836

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54322 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 12 gadi atpakaļ
vecāks
revīzija
aa5002f961
1 mainītis faili ar 6 papildinājumiem un 2 dzēšanām
  1. 6 2
      raster/r.rescale.eq/main.c

+ 6 - 2
raster/r.rescale.eq/main.c

@@ -29,7 +29,8 @@ int main(int argc, char *argv[])
     char input[GNAME_MAX+8];
     char output[GNAME_MAX+8];
     char title[GPATH_MAX];
-    const char *args[5];
+    char rules[GNAME_MAX+8];
+    const char *args[6];
     struct Popen child;
     CELL old_min, old_max;
     CELL new_min, new_max;
@@ -130,11 +131,14 @@ int main(int argc, char *argv[])
     else
 	sprintf(title, "title=rescale of %s", old_name);
 
+    sprintf(rules, "rules=-");
+
     args[0] = "r.reclass";
     args[1] = input;
     args[2] = output;
     args[3] = title;
-    args[4] = NULL;
+    args[4] = rules; 
+    args[5] = NULL;
 
     fp = G_popen_write(&child, "r.reclass", args);