Increase size of string to silence warning
This commit is contained in:
parent
f7e4f440c8
commit
931397671f
|
@ -821,12 +821,12 @@ static void task_load_handler(retro_task_t *task)
|
||||||
{
|
{
|
||||||
if (state->autoload)
|
if (state->autoload)
|
||||||
{
|
{
|
||||||
char *msg = (char*)malloc(1024 * sizeof(char));
|
char *msg = (char*)malloc(8192 * sizeof(char));
|
||||||
|
|
||||||
msg[0] = '\0';
|
msg[0] = '\0';
|
||||||
|
|
||||||
snprintf(msg,
|
snprintf(msg,
|
||||||
1024 * sizeof(char),
|
8192 * sizeof(char),
|
||||||
"%s \"%s\" %s.",
|
"%s \"%s\" %s.",
|
||||||
msg_hash_to_str(MSG_AUTOLOADING_SAVESTATE_FROM),
|
msg_hash_to_str(MSG_AUTOLOADING_SAVESTATE_FROM),
|
||||||
state->path,
|
state->path,
|
||||||
|
|
Loading…
Reference in New Issue