changeset 717:aae956e84de4

Use g_build_filename().
author zas_
date Wed, 21 May 2008 00:42:14 +0000
parents c534b8cecc1f
children 7119e30971ec
files src/thumb_standard.c src/ui_pathsel.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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));