[GRASS-SVN] r37023 -
grass/branches/releasebranch_6_4/raster/r.recode
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed May 6 08:08:55 EDT 2009
Author: hamish
Date: 2009-05-06 08:08:55 -0400 (Wed, 06 May 2009)
New Revision: 37023
Modified:
grass/branches/releasebranch_6_4/raster/r.recode/read_rules.c
Log:
fix for last commit
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 12:08:54 UTC (rev 37022)
+++ grass/branches/releasebranch_6_4/raster/r.recode/read_rules.c 2009-05-06 12:08:55 UTC (rev 37023)
@@ -66,9 +66,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