Make action_scan_directory safer - fill_pathname_join now doesn't

have the same variable for arguments 1 and 2
This commit is contained in:
twinaphex 2019-09-23 04:14:10 +02:00
parent d045484788
commit 82259a086e

View File

@ -81,10 +81,10 @@ int action_scan_directory(const char *path,
menu_entries_get_last_stack(&menu_path, NULL, NULL, NULL, NULL);
strlcpy(fullpath, menu_path, sizeof(fullpath));
if (path)
fill_pathname_join(fullpath, fullpath, path, sizeof(fullpath));
fill_pathname_join(fullpath, menu_path, path, sizeof(fullpath));
else
strlcpy(fullpath, menu_path, sizeof(fullpath));
task_push_dbscan(
settings->paths.directory_playlist,