mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
Prevent strlcpy if menu_path is NULL
This commit is contained in:
parent
07d65c34ad
commit
d8f0df794d
@ -412,7 +412,8 @@ static int rarch_defer_core_wrapper(size_t idx, size_t entry_idx,
|
|||||||
|
|
||||||
menu_entries_get_last_stack(&menu_path, &menu_label, NULL, NULL);
|
menu_entries_get_last_stack(&menu_path, &menu_label, NULL, NULL);
|
||||||
|
|
||||||
strlcpy(menu_path_new, menu_path, sizeof(menu_path_new));
|
if (!string_is_empty(menu_path))
|
||||||
|
strlcpy(menu_path_new, menu_path, sizeof(menu_path_new));
|
||||||
|
|
||||||
if (
|
if (
|
||||||
string_is_equal(menu_label,
|
string_is_equal(menu_label,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user