mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +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);
|
menu_entries_get_last_stack(&menu_path, NULL, NULL, NULL, NULL);
|
||||||
|
|
||||||
strlcpy(fullpath, menu_path, sizeof(fullpath));
|
|
||||||
|
|
||||||
if (path)
|
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(
|
task_push_dbscan(
|
||||||
settings->paths.directory_playlist,
|
settings->paths.directory_playlist,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user