mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-27 03:31: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 */
|
/* 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)
|
||||||
|
Loading…
Reference in New Issue
Block a user