[GRASS-SVN] r45539 - grass/branches/develbranch_6/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Mar 3 14:40:14 EST 2011
Author: martinl
Date: 2011-03-03 11:40:14 -0800 (Thu, 03 Mar 2011)
New Revision: 45539
Modified:
grass/branches/develbranch_6/lib/vector/Vlib/field.c
Log:
vlib: field.c: normalize path for Windows
(merge r45538 from relbr64)
Modified: grass/branches/develbranch_6/lib/vector/Vlib/field.c
===================================================================
--- grass/branches/develbranch_6/lib/vector/Vlib/field.c 2011-03-03 19:32:32 UTC (rev 45538)
+++ grass/branches/develbranch_6/lib/vector/Vlib/field.c 2011-03-03 19:40:14 UTC (rev 45539)
@@ -746,8 +746,15 @@
G_debug(3, "Vect_subst_var(): in = %s, map = %s, mapset = %s", in,
Map->name, Map->mapset);
+#ifdef __MINGW32__
+ char *cin;
+ cin = G_str_replace((char *)in, "/", "\\");
+ strcpy(str, cin);
+ G_free(cin);
+#else
strcpy(str, in);
-
+#endif
+
strcpy(buf, str);
c = (char *)strstr(buf, "$GISDBASE");
if (c != NULL) {
More information about the grass-commit
mailing list