diff src/ui_pathsel.c @ 717:aae956e84de4

Use g_build_filename().
author zas_
date Wed, 21 May 2008 00:42:14 +0000
parents e07895754e65
children ab4162fa9209
line wrap: on
line diff
--- 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));