[GRASS-SVN] r45653 - grass/trunk/db/drivers/dbf

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


Author: martinl
Date: 2011-03-13 04:53:41 -0700 (Sun, 13 Mar 2011)
New Revision: 45653

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


Modified: grass/trunk/db/drivers/dbf/table.c
===================================================================
--- grass/trunk/db/drivers/dbf/table.c	2011-03-13 11:49:49 UTC (rev 45652)
+++ grass/trunk/db/drivers/dbf/table.c	2011-03-13 11:53:41 UTC (rev 45653)
@@ -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