gtk/plugins/cap/cap.c

changeset 14575
09627613e743
parent 14573
7e18a0a07718
child 14578
86ee02190858
--- a/gtk/plugins/cap/cap.c	Mon Sep 11 00:31:48 2006 +0000
+++ b/gtk/plugins/cap/cap.c	Mon Sep 11 00:52:18 2006 +0000
@@ -568,10 +568,14 @@
 	if(_db)
 		return TRUE;
 
-	//make database connection here
+	//build the path
 	path = g_string_new(gaim_user_dir());
-	g_string_append(path, "/cap.db");
+	g_string_append(path, G_DIR_SEPARATOR_S);
+	g_string_append(path, "cap.db");
+
+	//make database connection here
 	rc = sqlite3_open(path->str, &_db);
+	g_string_free(path, TRUE);
 	if(rc != SQLITE_OK)
 		return FALSE;
 	

mercurial