From da693822730d1712d44da85389e4d8b659b3b5df Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 4 Jan 2009 19:37:19 +0100 Subject: path: removed pfx_dir() Use GLib's g_build_filename() instead of pfx_dir(). --- src/update.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/update.c') diff --git a/src/update.c b/src/update.c index f792b3c3c..7f5185ccb 100644 --- a/src/update.c +++ b/src/update.c @@ -288,16 +288,16 @@ make_subdir(struct directory *parent, const char *name) directory = directory_get_child(parent, name); if (directory == NULL) { - char path[MPD_PATH_MAX]; + char *path; if (directory_is_root(parent)) - strcpy(path, name); + path = NULL; else - pfx_dir(path, name, strlen(name), - directory_get_path(parent), - strlen(directory_get_path(parent))); + name = path = g_strconcat(directory_get_path(parent), + "/", name, NULL); - directory = directory_new_child(parent, path); + directory = directory_new_child(parent, name); + g_free(path); } return directory; -- cgit v1.2.3