[GRASS-SVN] r52812 - grass/trunk/vector/v.in.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Aug 21 05:57:59 PDT 2012


Author: mmetz
Date: 2012-08-21 05:57:59 -0700 (Tue, 21 Aug 2012)
New Revision: 52812

Modified:
   grass/trunk/vector/v.in.ogr/main.c
Log:
v.in.ogr: fix for #173

Modified: grass/trunk/vector/v.in.ogr/main.c
===================================================================
--- grass/trunk/vector/v.in.ogr/main.c	2012-08-21 12:49:15 UTC (rev 52811)
+++ grass/trunk/vector/v.in.ogr/main.c	2012-08-21 12:57:59 UTC (rev 52812)
@@ -315,8 +315,11 @@
     ncnames = 0;
     if (param.cnames->answers) {
 	i = 0;
-	while (param.cnames->answers[i++]) {
+	while (param.cnames->answers[i]) {
+	    G_strip(param.cnames->answers[i]);
+	    G_strchg(param.cnames->answers[i], ' ', '\0');
 	    ncnames++;
+	    i++;
 	}
     }
 



More information about the grass-commit mailing list