[GRASS-SVN] r37022 - grass/trunk/raster/r.recode
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed May 6 08:08:54 EDT 2009
Author: hamish
Date: 2009-05-06 08:08:54 -0400 (Wed, 06 May 2009)
New Revision: 37022
Modified:
grass/trunk/raster/r.recode/read_rules.c
Log:
fix for last commit
Modified: grass/trunk/raster/r.recode/read_rules.c
===================================================================
--- grass/trunk/raster/r.recode/read_rules.c 2009-05-06 12:07:26 UTC (rev 37021)
+++ grass/trunk/raster/r.recode/read_rules.c 2009-05-06 12:08:54 UTC (rev 37022)
@@ -62,9 +62,12 @@
for (line = 1;; line++) {
if (isatty(fileno(fp)))
fprintf(stderr, "> ");
+
if (!G_getl2(buf, 1024, fp))
return nrules;
- buf[strlen(buf) - 1] = '\0';
+
+ G_debug(5, "buf = [%s], strlen(buf)=%d", buf, strlen(buf));
+
for (n = 0; buf[n]; n++)
if (buf[n] == ',')
buf[n] = ' ';
More information about the grass-commit
mailing list