mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 18:50:29 +00:00
Prevent menu_entry_pathdir_extensions from crashing the app
This commit is contained in:
parent
d25b248db0
commit
a1c4446f24
@ -332,8 +332,9 @@ int menu_entry_pathdir_set_value(uint32_t i, const char *s)
|
||||
void menu_entry_pathdir_extensions(uint32_t i, char *s, size_t len)
|
||||
{
|
||||
rarch_setting_t *setting = menu_entry_get_setting(i);
|
||||
if (setting)
|
||||
strlcpy(s, setting->values, len);
|
||||
const char *extensions = setting ? setting->values : NULL;
|
||||
if (setting && extensions)
|
||||
strlcpy(s, extensions, len);
|
||||
}
|
||||
|
||||
void menu_entry_reset(uint32_t i)
|
||||
|
Loading…
Reference in New Issue
Block a user