[GRASS-SVN] r39457 - grass/branches/releasebranch_6_4/lib/db/dbmi_base

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Oct 10 02:03:37 EDT 2009


Author: hamish
Date: 2009-10-10 02:03:36 -0400 (Sat, 10 Oct 2009)
New Revision: 39457

Modified:
   grass/branches/releasebranch_6_4/lib/db/dbmi_base/dbmscap.c
Log:
remove superfluous quotes (trac #629; merge from devbr6)

Modified: grass/branches/releasebranch_6_4/lib/db/dbmi_base/dbmscap.c
===================================================================
--- grass/branches/releasebranch_6_4/lib/db/dbmi_base/dbmscap.c	2009-10-10 06:00:49 UTC (rev 39456)
+++ grass/branches/releasebranch_6_4/lib/db/dbmi_base/dbmscap.c	2009-10-10 06:03:36 UTC (rev 39457)
@@ -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