Increase size of string to silence warning

This commit is contained in:
twinaphex 2018-09-28 21:40:17 +02:00
parent f7e4f440c8
commit 931397671f

View File

@ -821,12 +821,12 @@ static void task_load_handler(retro_task_t *task)
{
if (state->autoload)
{
char *msg = (char*)malloc(1024 * sizeof(char));
char *msg = (char*)malloc(8192 * sizeof(char));
msg[0] = '\0';
snprintf(msg,
1024 * sizeof(char),
8192 * sizeof(char),
"%s \"%s\" %s.",
msg_hash_to_str(MSG_AUTOLOADING_SAVESTATE_FROM),
state->path,