mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
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:
parent
d045484788
commit
82259a086e
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user