[GRASS-SVN] r31912 - grass/trunk/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jun 30 17:10:04 EDT 2008
Author: glynn
Date: 2008-06-30 17:10:04 -0400 (Mon, 30 Jun 2008)
New Revision: 31912
Modified:
grass/trunk/lib/gis/token.c
Log:
Don't skip field separators, even if they are whitespace
Modified: grass/trunk/lib/gis/token.c
===================================================================
--- grass/trunk/lib/gis/token.c 2008-06-30 20:43:08 UTC (rev 31911)
+++ grass/trunk/lib/gis/token.c 2008-06-30 21:10:04 UTC (rev 31912)
@@ -36,7 +36,7 @@
char *p;
i = 0;
- while (*buf == ' ' || *buf == '\t') /* needed for G_free () */
+ while (!G_index(delim,*buf) && (*buf == ' ' || *buf == '\t')) /* needed for G_free () */
buf++;
p = G_store (buf);
@@ -45,7 +45,7 @@
while (1)
{
- while (*p == ' ' || *p == '\t')
+ while (!G_index(delim,*p) && (*p == ' ' || *p == '\t'))
p++;
if (*p == 0)
break;
More information about the grass-commit
mailing list