mirror of
https://github.com/libretro/RetroArch
synced 2025-03-10 07:14:13 +00:00
(Lakka) Fix invalid read
This commit is contained in:
parent
c0bb34fb8d
commit
3bcac616f7
@ -1103,7 +1103,7 @@ static void *lakka_init(void)
|
|||||||
category->active_item = 0;
|
category->active_item = 0;
|
||||||
category->num_items = 0;
|
category->num_items = 0;
|
||||||
category->items = (menu_item_t*)
|
category->items = (menu_item_t*)
|
||||||
calloc(category->num_items, sizeof(menu_item_t));
|
calloc(category->num_items + 1, sizeof(menu_item_t));
|
||||||
|
|
||||||
lakka_init_items(i, category, info, g_settings.content_directory);
|
lakka_init_items(i, category, info, g_settings.content_directory);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user