Use g_build_filename() instead of g_strconcat().
authorLaurent Monin <geeqie@norz.org>
Tue, 20 May 2008 22:11:59 +0000 (22:11 +0000)
committerLaurent Monin <geeqie@norz.org>
Tue, 20 May 2008 22:11:59 +0000 (22:11 +0000)
src/ui_fileops.c

index 3f30b9b..aa40697 100644 (file)
@@ -708,7 +708,7 @@ gint file_in_path(const gchar *name)
                while (path[e] != ':' && path[e] != '\0') e++;
                path[e] = '\0';
                e++;
-               f = g_strconcat(path + p, "/", namel, NULL);
+               f = g_build_filename(path + p, namel, NULL);
                if (isfile(f)) ret = TRUE;
                g_free(f);
                p = e;