[GRASS-SVN] r56069 - grass/branches/releasebranch_6_4/vector/v.in.ogr
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed May 1 21:58:58 PDT 2013
Author: neteler
Date: 2013-05-01 21:58:57 -0700 (Wed, 01 May 2013)
New Revision: 56069
Modified:
grass/branches/releasebranch_6_4/vector/v.in.ogr/main.c
Log:
v.in.ogr: fix for #173 (backport from trunk, r52812)
Modified: grass/branches/releasebranch_6_4/vector/v.in.ogr/main.c
===================================================================
--- grass/branches/releasebranch_6_4/vector/v.in.ogr/main.c 2013-05-02 01:35:55 UTC (rev 56068)
+++ grass/branches/releasebranch_6_4/vector/v.in.ogr/main.c 2013-05-02 04:58:57 UTC (rev 56069)
@@ -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