Commit c232ea10 authored by Max Kellermann's avatar Max Kellermann

update: removed one more stack buffer

parent 5ed5aa99
...@@ -520,7 +520,6 @@ updateDirectory(struct directory *directory, const struct stat *st) ...@@ -520,7 +520,6 @@ updateDirectory(struct directory *directory, const struct stat *st)
{ {
DIR *dir; DIR *dir;
struct dirent *ent; struct dirent *ent;
char path_max_tmp[MPD_PATH_MAX];
char *path_fs; char *path_fs;
assert(S_ISDIR(st->st_mode)); assert(S_ISDIR(st->st_mode));
...@@ -552,10 +551,9 @@ updateDirectory(struct directory *directory, const struct stat *st) ...@@ -552,10 +551,9 @@ updateDirectory(struct directory *directory, const struct stat *st)
} }
if (stat_directory_child(directory, utf8, &st2) == 0) if (stat_directory_child(directory, utf8, &st2) == 0)
updateInDirectory(directory, updateInDirectory(directory, utf8, &st2);
path_max_tmp, &st2);
else else
delete_name_in(directory, path_max_tmp); delete_name_in(directory, utf8);
g_free(utf8); g_free(utf8);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment