From: <g-...@us...> - 2006-09-11 01:52:16
|
Revision: 17237 http://svn.sourceforge.net/gaim/?rev=17237&view=rev Author: g-off_ Date: 2006-09-10 18:52:12 -0700 (Sun, 10 Sep 2006) Log Message: ----------- 4th times a charm. Use g_build_filename (thanks rlaager). Modified Paths: -------------- trunk/gtk/plugins/cap/cap.c Modified: trunk/gtk/plugins/cap/cap.c =================================================================== --- trunk/gtk/plugins/cap/cap.c 2006-09-11 01:39:25 UTC (rev 17236) +++ trunk/gtk/plugins/cap/cap.c 2006-09-11 01:52:12 UTC (rev 17237) @@ -563,20 +563,18 @@ } static gboolean create_database_connection() { - GString *path; + gchar *path; int rc; if(_db) return TRUE; /* build the path */ - path = g_string_new(gaim_user_dir()); - g_string_append(path, G_DIR_SEPARATOR_S); - g_string_append(path, "cap.db"); + path = g_build_filename(gaim_user_dir(), "cap.db", (gchar *)NULL); /* make database connection here */ - rc = sqlite3_open(path->str, &_db); - g_string_free(path, TRUE); + rc = sqlite3_open(path, &_db); + g_free(path); if(rc != SQLITE_OK) return FALSE; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |