From 761644ee57b98643d53de6bebd1ce6672d7da7d6 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 28 Sep 2018 21:42:09 +0200 Subject: [PATCH] Increase size of string to 8192 --- command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command.c b/command.c index 3af7352fbb..555d23b151 100644 --- a/command.c +++ b/command.c @@ -1638,8 +1638,8 @@ static bool command_event_main_state(unsigned cmd) { retro_ctx_size_info_t info; char msg[128]; - char *state_path = (char*)malloc(PATH_MAX_LENGTH * sizeof(char)); - size_t state_path_size = PATH_MAX_LENGTH * sizeof(char); + size_t state_path_size = 8192 * sizeof(char); + char *state_path = (char*)malloc(state_path_size); global_t *global = global_get_ptr(); bool ret = false; bool push_msg = true;