in cartridge.c, fix cartridge_get_vram_mirroring may cause buffer overflow issue.