Use g_build_filename() instead of g_strconcat().
authorLaurent Monin <geeqie@norz.org>
Wed, 21 May 2008 00:15:41 +0000 (00:15 +0000)
committerLaurent Monin <geeqie@norz.org>
Wed, 21 May 2008 00:15:41 +0000 (00:15 +0000)
src/remote.c

index a4ebfc7..4a9391e 100644 (file)
@@ -699,7 +699,7 @@ void remote_control(const gchar *arg_exec, GList *remote_list, const gchar *path
        gint started = FALSE;
        gchar *buf;
 
-       buf = g_strconcat(homedir(), "/", GQ_RC_DIR, "/.command", NULL);
+       buf = g_build_filename(homedir(), GQ_RC_DIR, ".command", NULL);
        rc = remote_client_open(buf);
        if (!rc)
                {