mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 16:13:40 +00:00
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:
parent
0c7408ee16
commit
eaae2aec46
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user