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;
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));