[GRASS-SVN] r39456 - grass/branches/develbranch_6/lib/db/dbmi_base

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Oct 10 02:00:50 EDT 2009


Author: hamish
Date: 2009-10-10 02:00:49 -0400 (Sat, 10 Oct 2009)
New Revision: 39456

Modified:
   grass/branches/develbranch_6/lib/db/dbmi_base/dbmscap.c
Log:
remove superfluous quotes (trac #629)

Modified: grass/branches/develbranch_6/lib/db/dbmi_base/dbmscap.c
===================================================================
--- grass/branches/develbranch_6/lib/db/dbmi_base/dbmscap.c	2009-10-09 11:13:39 UTC (rev 39455)
+++ grass/branches/develbranch_6/lib/db/dbmi_base/dbmscap.c	2009-10-10 06:00:49 UTC (rev 39456)
@@ -173,12 +173,12 @@
 	name = G_str_replace(ent->d_name, ".exe", "");
 
 #ifdef __MINGW32__
-	dirpath = G_malloc(strlen("\"\\driver\\db\\\"")
+	dirpath = G_malloc(strlen("\\driver\\db\\")
 			   + strlen(G_gisbase()) + strlen(ent->d_name) + 1);
-	sprintf(dirpath, "\"%s\\driver\\db\\%s\"", G_gisbase(), ent->d_name);
+	sprintf(dirpath, "%s\\driver\\db\\%s", G_gisbase(), ent->d_name);
 	G_convert_dirseps_to_host(dirpath);
 #else
-	G_asprintf(&dirpath, "\"%s/driver/db/%s\"", G_gisbase(), ent->d_name);
+	G_asprintf(&dirpath, "%s/driver/db/%s", G_gisbase(), ent->d_name);
 #endif
 	add_entry(&list, name, dirpath, "");
 	G_free(name);



More information about the grass-commit mailing list