Skip to content

Commit

Permalink
Use g_build_filename().
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Monin committed May 21, 2008
1 parent e45c0d9 commit 98cabee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/thumb_standard.c
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ gint thumb_loader_std_start(ThumbLoaderStd *tl, const gchar *path)
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;
Expand Down
2 changes: 1 addition & 1 deletion src/ui_pathsel.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ static void dest_populate(Dest_Data *dd, const gchar *path)
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));
Expand Down

0 comments on commit 98cabee

Please sign in to comment.