summaryrefslogtreecommitdiff
path: root/src/items.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/items.c')
-rw-r--r--src/items.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/items.c b/src/items.c
index 4012980..faedead 100644
--- a/src/items.c
+++ b/src/items.c
@@ -227,18 +227,18 @@ parse_album_xml (const gchar *filename)
/* Retrieve title and description from linked album if not defined here */
if (index->type == GALLERY_TYPE_INDEX &&
item->title == NULL && item->title_description == NULL) {
- s = g_strconcat (base_dir, "/", item->path, "/index.xml", NULL);
+ s = g_build_filename (base_dir, item->path, "index.xml", NULL);
get_album_titles (s, &item->title, &item->title_description, NULL);
g_free (s);
}
/* Retrieve thumbnail from linked album if not defined here */
if (index->type == GALLERY_TYPE_INDEX && item->thumbnail == NULL) {
- s = g_strconcat (base_dir, "/", item->path, "/index.xml", NULL);
+ s = g_build_filename (base_dir, item->path, "index.xml", NULL);
s2 = NULL;
get_album_titles (s, NULL, NULL, &s2);
if (s2) {
- item->thumbnail = g_strconcat (item->path, "/", s2, NULL);
+ item->thumbnail = g_build_filename (item->path, s2, NULL);
g_free (s2);
}
g_free (s);