Increase the size of formatted_number to 16 so we no longer get

-Wformat-truncation warnings (state slot would be way too big though
regardless, even the current cap at 999 is ridiculous)
This commit is contained in:
LibretroAdmin 2022-08-27 15:45:49 +02:00
parent 0c7408ee16
commit eaae2aec46

View File

@ -4674,7 +4674,7 @@ static bool runloop_check_movie_init(input_driver_state_t *input_st,
input_st->bsv_movie_state.movie_path, sizeof(path));
if (state_slot > 0)
{
char formatted_number[4];
char formatted_number[16];
formatted_number[0] = '\0';
snprintf(formatted_number, sizeof(formatted_number), "%d", state_slot);
strlcat(path, formatted_number, sizeof(path));