[GRASS-SVN] r56070 - grass/branches/develbranch_6/vector/v.in.ogr
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed May 1 21:59:08 PDT 2013
Author: neteler
Date: 2013-05-01 21:59:07 -0700 (Wed, 01 May 2013)
New Revision: 56070
Modified:
grass/branches/develbranch_6/vector/v.in.ogr/main.c
Log:
v.in.ogr: fix for #173 (backport from trunk, r52812)
Modified: grass/branches/develbranch_6/vector/v.in.ogr/main.c
===================================================================
--- grass/branches/develbranch_6/vector/v.in.ogr/main.c 2013-05-02 04:58:57 UTC (rev 56069)
+++ grass/branches/develbranch_6/vector/v.in.ogr/main.c 2013-05-02 04:59:07 UTC (rev 56070)
@@ -283,8 +283,11 @@
ncnames = 0;
if (cnames_opt->answers) {
i = 0;
- while (cnames_opt->answers[i++]) {
+ while (cnames_opt->answers[i]) {
+ G_strip(cnames_opt->answers[i]);
+ G_strchg(cnames_opt->answers[i], ' ', '\0');
ncnames++;
+ i++;
}
}
More information about the grass-commit
mailing list