mirror of
https://github.com/libretro/RetroArch
synced 2025-03-20 01:21:03 +00:00
Too long filenames were causing crashes/segfaults
This commit is contained in:
parent
f9b75e7d76
commit
592fe4d967
2
paths.c
2
paths.c
@ -52,7 +52,7 @@ static struct string_list *subsystem_fullpaths = NULL;
|
||||
|
||||
static char subsystem_path[PATH_MAX_LENGTH] = {0};
|
||||
static char path_default_shader_preset[PATH_MAX_LENGTH] = {0};
|
||||
static char path_main_basename[PATH_MAX_LENGTH] = {0};
|
||||
static char path_main_basename[8192] = {0};
|
||||
static char path_content[PATH_MAX_LENGTH] = {0};
|
||||
static char path_libretro[PATH_MAX_LENGTH] = {0};
|
||||
static char path_config_file[PATH_MAX_LENGTH] = {0};
|
||||
|
@ -186,7 +186,7 @@ void runloop_msg_queue_push(const char *msg,
|
||||
**/
|
||||
static bool rarch_game_specific_options(char **output)
|
||||
{
|
||||
char game_path[255];
|
||||
char game_path[8192];
|
||||
|
||||
game_path[0] ='\0';
|
||||
|
||||
|
22
runloop.h
22
runloop.h
@ -128,27 +128,27 @@ typedef struct global
|
||||
{
|
||||
struct
|
||||
{
|
||||
char savefile[4096];
|
||||
char savestate[4096];
|
||||
char cheatfile[4096];
|
||||
char ups[4096];
|
||||
char bps[4096];
|
||||
char ips[4096];
|
||||
char remapfile[4096];
|
||||
char savefile[8192];
|
||||
char savestate[8192];
|
||||
char cheatfile[8192];
|
||||
char ups[8192];
|
||||
char bps[8192];
|
||||
char ips[8192];
|
||||
char remapfile[8192];
|
||||
} name;
|
||||
|
||||
/* Recording. */
|
||||
struct
|
||||
{
|
||||
char path[4096];
|
||||
char config[4096];
|
||||
char path[8192];
|
||||
char config[8192];
|
||||
unsigned width;
|
||||
unsigned height;
|
||||
|
||||
size_t gpu_width;
|
||||
size_t gpu_height;
|
||||
char output_dir[4096];
|
||||
char config_dir[4096];
|
||||
char output_dir[8192];
|
||||
char config_dir[8192];
|
||||
bool use_output_dir;
|
||||
} record;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user