[GRASS-SVN] r45654 - grass/branches/develbranch_6/db/drivers/dbf

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Mar 13 07:57:57 EDT 2011


Author: martinl
Date: 2011-03-13 04:57:57 -0700 (Sun, 13 Mar 2011)
New Revision: 45654

Modified:
   grass/branches/develbranch_6/db/drivers/dbf/table.c
Log:
dbf: fix file path on windows
(merge r45652 from relbr64)


Modified: grass/branches/develbranch_6/db/drivers/dbf/table.c
===================================================================
--- grass/branches/develbranch_6/db/drivers/dbf/table.c	2011-03-13 11:53:41 UTC (rev 45653)
+++ grass/branches/develbranch_6/db/drivers/dbf/table.c	2011-03-13 11:57:57 UTC (rev 45654)
@@ -50,7 +50,11 @@
 
     strcpy(db.tables[db.ntables].name, table);
 
+#ifdef __MINGW32__
+    sprintf(db.tables[db.ntables].file, "%s\%s", db.name, name);
+#else
     sprintf(db.tables[db.ntables].file, "%s/%s", db.name, name);
+#endif
 
     db.tables[db.ntables].alive = TRUE;
     db.tables[db.ntables].described = FALSE;



More information about the grass-commit mailing list