Fix warning

This commit is contained in:
Lior Halphon
2024-04-05 14:54:05 +03:00
parent 2b37404447
commit a80a19b418

View File

@@ -529,7 +529,7 @@ static void boot_rom_load(GB_gameboy_t *gb, GB_boot_rom_t type)
[GB_BOOT_ROM_AGB] = agb_boot_length,
}[type];
char buf[256];
char buf[4096 + 1 + 4 + 9 + 1];
snprintf(buf, sizeof(buf), "%s%c%s_boot.bin", retro_system_directory, slash, model_name);
log_cb(RETRO_LOG_INFO, "Initializing as model: %s\n", model_name);
log_cb(RETRO_LOG_INFO, "Loading boot image: %s\n", buf);