Fix "index out of bounds" runtime error

This commit is contained in:
retro-wertz 2019-08-12 21:56:10 +08:00
parent 36f3a739ed
commit ad43b32bdd
1 changed files with 1 additions and 1 deletions

View File

@ -780,7 +780,7 @@ static void load_image_preferences(void)
bool found = false;
bool hasRumble = false;
char buffer[12];
char buffer[12 + 1];
unsigned i = 0, found_no = 0;
unsigned long romCrc32 = crc32(0, rom, romSize);