# HG changeset patch # User zas_ # Date 1211330534 0 # Node ID aae956e84de42eb8bc15dd7e6fb9b88db4cd59a5 # Parent c534b8cecc1ff01ab12c5aa385d9f419d9cb9fcc Use g_build_filename(). diff -r c534b8cecc1f -r aae956e84de4 src/thumb_standard.c --- a/src/thumb_standard.c Wed May 21 00:39:16 2008 +0000 +++ b/src/thumb_standard.c Wed May 21 00:42:14 2008 +0000 @@ -649,7 +649,7 @@ tl->source_size = st.st_size; tl->source_mode = st.st_mode; - if (!thumb_cache) thumb_cache = g_strconcat(homedir(), "/", THUMB_FOLDER_GLOBAL, NULL); + if (!thumb_cache) thumb_cache = g_build_filename(homedir(), THUMB_FOLDER_GLOBAL, NULL); if (strncmp(tl->source_path, thumb_cache, strlen(thumb_cache)) != 0) { gchar *pathl; diff -r c534b8cecc1f -r aae956e84de4 src/ui_pathsel.c --- a/src/ui_pathsel.c Wed May 21 00:39:16 2008 +0000 +++ b/src/ui_pathsel.c Wed May 21 00:42:14 2008 +0000 @@ -189,7 +189,7 @@ if (dd->show_hidden || !is_hidden(dir->d_name)) { gchar *name = dir->d_name; - gchar *filepath = g_strconcat(pathl, "/", name, NULL); + gchar *filepath = g_build_filename(pathl, name, NULL); if (stat(filepath, &ent_sbuf) >= 0 && S_ISDIR(ent_sbuf.st_mode)) { path_list = g_list_prepend(path_list, path_to_utf8(name));