Prevent strlcpy if menu_path is NULL

This commit is contained in:
twinaphex 2016-01-26 01:20:08 +01:00
parent 07d65c34ad
commit d8f0df794d

View File

@ -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);
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 (
string_is_equal(menu_label,