diff --git a/command_event.c b/command_event.c index d0654fe66e..50e94a6841 100644 --- a/command_event.c +++ b/command_event.c @@ -690,9 +690,9 @@ static bool event_init_core(void) rarch_init_system_av_info(); if(settings->sort_savefiles_enable) - strlcpy(global->savefile_dir,orig_savefile_dir,sizeof(global->savefile_dir)); + strlcpy(global->savefile_dir,orig_savefile_dir,sizeof(global->savefile_dir)); if(settings->sort_savestates_enable) - strlcpy(global->savestate_dir,orig_savestate_dir,sizeof(global->savestate_dir)); + strlcpy(global->savestate_dir,orig_savestate_dir,sizeof(global->savestate_dir)); return true; } diff --git a/retroarch.c b/retroarch.c index c9f833ca8e..3f7d95e37a 100644 --- a/retroarch.c +++ b/retroarch.c @@ -344,10 +344,10 @@ void set_paths_redirect(const char *path) } if(path_is_directory(global->savefile_dir)) - strlcpy(global->savefile_name,global->savefile_dir,sizeof(global->savefile_dir)); + strlcpy(global->savefile_name,global->savefile_dir,sizeof(global->savefile_dir)); if(path_is_directory(global->savestate_dir)) - strlcpy(global->savestate_name,global->savestate_dir,sizeof(global->savestate_dir)); + strlcpy(global->savestate_name,global->savestate_dir,sizeof(global->savestate_dir)); if (path_is_directory(global->savefile_name)) {