summaryrefslogtreecommitdiff
path: root/src/items.c
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2011-01-23 18:11:38 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2011-01-23 18:11:38 +0100
commit49abd46d162e1d5013a42947c200544b75ab9da1 (patch)
tree91a74f000839814a315356fd9ef7dfe787501853 /src/items.c
parent7df97fbe8fa93141e7922a95f5ce0f9254bf41ab (diff)
downloadcataract-49abd46d162e1d5013a42947c200544b75ab9da1.tar.xz
Use g_build_{filename|path} when possible
This has a nice side effect of not having double slashes in paths anymore.
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);