[Core] When copying backward, use memmove instead of memcpy (anjbe).

This commit is contained in:
EkeEke 2016-09-02 16:31:08 +02:00
parent 446d9aa61f
commit aa084363b6

View File

@ -646,7 +646,7 @@ int load_rom(char *filename)
{ {
/* remove header */ /* remove header */
size -= 512; size -= 512;
memcpy (cart.rom, cart.rom + 512, size); memmove (cart.rom, cart.rom + 512, size);
/* assume interleaved Mega Drive / Genesis ROM format (.smd) */ /* assume interleaved Mega Drive / Genesis ROM format (.smd) */
if (system_hw == SYSTEM_MD) if (system_hw == SYSTEM_MD)