Browse Source

Merge pull request #192 from metzm/r_geomorphon

r.geomorphon
Markus Metz 5 years ago
parent
commit
9584b3ed77
2 changed files with 2 additions and 2 deletions
  1. 1 1
      raster/r.geomorphon/main.c
  2. 1 1
      raster/r.geomorphon/multires.c

+ 1 - 1
raster/r.geomorphon/main.c

@@ -501,7 +501,7 @@ int main(int argc, char **argv)
 	for (i = 0; i < 5; ++i) {
 	    multiple_output[i].forms_buffer = Rast_allocate_buf(CELL_TYPE);
 	    strcpy(multiple_output[i].name, prefix);
-	    strcat(multiple_output[11].name, postfixes[i]);
+	    strcat(multiple_output[i].name, postfixes[i]);
 	    multiple_output[i].fd =
 		Rast_open_new(multiple_output[i].name, CELL_TYPE);
 	}

+ 1 - 1
raster/r.geomorphon/multires.c

@@ -17,6 +17,6 @@ int pattern_matching(int *pattern)
 	    test = (binary << i) | (binary >> (8 - i));
 	result = (result < test) ? result : test;
     }
-    return (result & source == source) ? 1 : 0;
+    return ((result & source) == source) ? 1 : 0;
 
 }