Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/save.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ void loadRAM(struct Memory* memory, enum StoredInfoType storeType, int compresse

if (mbc7Data->dataCheck != GB_SETTINGS_HEADER)
{
memset(mbc7Data->eeprom, 0, 256);
memset_s(mbc7Data->eeprom, sizeof(mbc7Data->eeprom), 0, sizeof(mbc7Data->eeprom));
mbc7Data->dataCheck = GB_SETTINGS_HEADER;
}
}
Expand Down Expand Up @@ -796,4 +796,4 @@ enum StoredInfoType getDeprecatedStoredInfoType(struct GameBoy* gameboy)
{
return StoredInfoTypeNone;
}
}
}