[GRASS-SVN] r32261 - grass/trunk/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jul 24 11:03:13 EDT 2008


Author: glynn
Date: 2008-07-24 11:03:13 -0400 (Thu, 24 Jul 2008)
New Revision: 32261

Modified:
   grass/trunk/lib/gis/parser.c
Log:
Only treat an argument as an option if the character preceding the
first '=' is alphanumeric (update of r32259)


Modified: grass/trunk/lib/gis/parser.c
===================================================================
--- grass/trunk/lib/gis/parser.c	2008-07-24 15:01:40 UTC (rev 32260)
+++ grass/trunk/lib/gis/parser.c	2008-07-24 15:03:13 UTC (rev 32261)
@@ -2159,7 +2159,7 @@
 	if (p == string)
 		return 0;
 	p--;
-	if (*p == ' ' || *p == '\t')
+	if (!strchr("abcdefghijklmnopqrstuvwxyz0123456789", *p))
 		return 0;
 
 	return 1;



More information about the grass-commit mailing list