# HG changeset patch # User Geoff Foster # Date 1157935938 0 # Node ID 59223d5fb0ad9831a0072146b7a6e4937cecba98 # Parent 92817f33cefc594fee1d4dd53c4ffb3b45afe9dc [gaim-migrate @ 17233] Use OS specific path separator and free the GString when done with it. committer: Tailor Script diff -r 92817f33cefc -r 59223d5fb0ad gtk/plugins/cap/cap.c --- 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;