Revert "Reduce character arrays passed to fill_pathname_base"

This reverts commit a4a7c3bedfffb7038a770351e341262f1ee170c8.
This commit is contained in:
twinaphex 2021-11-10 08:21:59 +01:00
parent 823c54a39d
commit f06b9ecf06
2 changed files with 4 additions and 4 deletions

View File

@ -1136,7 +1136,7 @@ void command_event_set_savestate_auto_index(settings_t *settings)
{
size_t i;
char state_dir[PATH_MAX_LENGTH];
char state_base[NAME_MAX_LENGTH];
char state_base[PATH_MAX_LENGTH];
struct string_list *dir_list = NULL;
unsigned max_idx = 0;
@ -1204,7 +1204,7 @@ void command_event_set_savestate_garbage_collect(
{
size_t i, cnt = 0;
char state_dir[PATH_MAX_LENGTH];
char state_base[NAME_MAX_LENGTH];
char state_base[PATH_MAX_LENGTH];
runloop_state_t *runloop_st = runloop_state_get_ptr();
struct string_list *dir_list = NULL;

View File

@ -60,8 +60,8 @@ static void find_first_libretro_core(char *first_file,
for (i = 0; i < list->size && !ret; i++)
{
char fname[NAME_MAX_LENGTH] = {0};
char salamander_name[NAME_MAX_LENGTH] = {0};
char fname[PATH_MAX_LENGTH] = {0};
char salamander_name[PATH_MAX_LENGTH] = {0};
const char *libretro_elem = (const char*)list->elems[i].data;
RARCH_LOG("Checking library: \"%s\".\n", libretro_elem);