[GRASS-SVN] r37020 - grass/trunk/raster/r.recode
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed May 6 07:54:45 EDT 2009
Author: hamish
Date: 2009-05-06 07:54:45 -0400 (Wed, 06 May 2009)
New Revision: 37020
Modified:
grass/trunk/raster/r.recode/read_rules.c
Log:
apply Markus's patch (bug #172, merge from devbr6)
Modified: grass/trunk/raster/r.recode/read_rules.c
===================================================================
--- grass/trunk/raster/r.recode/read_rules.c 2009-05-06 11:54:32 UTC (rev 37019)
+++ grass/trunk/raster/r.recode/read_rules.c 2009-05-06 11:54:45 UTC (rev 37020)
@@ -62,7 +62,7 @@
for (line = 1;; line++) {
if (isatty(fileno(fp)))
fprintf(stderr, "> ");
- if (!fgets(buf, 1024, fp))
+ if (!G_getl2(buf, 1024, fp))
return nrules;
buf[strlen(buf) - 1] = '\0';
for (n = 0; buf[n]; n++)
More information about the grass-commit
mailing list