[GRASS-SVN] r37019 -
grass/branches/releasebranch_6_4/raster/r.recode
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed May 6 07:54:32 EDT 2009
Author: hamish
Date: 2009-05-06 07:54:32 -0400 (Wed, 06 May 2009)
New Revision: 37019
Modified:
grass/branches/releasebranch_6_4/raster/r.recode/read_rules.c
Log:
apply Markus's patch (bug #172, merge from devbr6)
Modified: grass/branches/releasebranch_6_4/raster/r.recode/read_rules.c
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.recode/read_rules.c 2009-05-06 11:53:16 UTC (rev 37018)
+++ grass/branches/releasebranch_6_4/raster/r.recode/read_rules.c 2009-05-06 11:54:32 UTC (rev 37019)
@@ -66,7 +66,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