aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-08 21:29:21 +0100
committerMax Kellermann <max@duempel.org>2009-01-08 21:29:21 +0100
commitc232ea10eddf5d0ff85b0846939a4ef7c9335f89 (patch)
treefe8d761d075f79bf8d3dc024451be84b01a8fa9e /src
parent5ed5aa99acb6b8360df75bb1ce13d4b97ea50538 (diff)
downloadmpd-c232ea10eddf5d0ff85b0846939a4ef7c9335f89.tar.gz
mpd-c232ea10eddf5d0ff85b0846939a4ef7c9335f89.tar.xz
mpd-c232ea10eddf5d0ff85b0846939a4ef7c9335f89.zip
update: removed one more stack buffer
Diffstat (limited to '')
-rw-r--r--src/update.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/update.c b/src/update.c
index c2a6296cd..f27247628 100644
--- a/src/update.c
+++ b/src/update.c
@@ -520,7 +520,6 @@ updateDirectory(struct directory *directory, const struct stat *st)
{
DIR *dir;
struct dirent *ent;
- char path_max_tmp[MPD_PATH_MAX];
char *path_fs;
assert(S_ISDIR(st->st_mode));
@@ -552,10 +551,9 @@ updateDirectory(struct directory *directory, const struct stat *st)
}
if (stat_directory_child(directory, utf8, &st2) == 0)
- updateInDirectory(directory,
- path_max_tmp, &st2);
+ updateInDirectory(directory, utf8, &st2);
else
- delete_name_in(directory, path_max_tmp);
+ delete_name_in(directory, utf8);
g_free(utf8);
}