mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-26 19:21:49 +01:00
[Core] When copying backward, use memmove instead of memcpy (anjbe).
This commit is contained in:
parent
446d9aa61f
commit
aa084363b6
@ -646,7 +646,7 @@ int load_rom(char *filename)
|
||||
{
|
||||
/* remove header */
|
||||
size -= 512;
|
||||
memcpy (cart.rom, cart.rom + 512, size);
|
||||
memmove (cart.rom, cart.rom + 512, size);
|
||||
|
||||
/* assume interleaved Mega Drive / Genesis ROM format (.smd) */
|
||||
if (system_hw == SYSTEM_MD)
|
||||
|
Loading…
Reference in New Issue
Block a user