mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-25 22:07:34 +00:00
Fix buffer overflow in matchSaveGame().
svn-id: r39182
This commit is contained in:
parent
dd10e99c2e
commit
32e49fe2cf
@ -256,9 +256,10 @@ bool AGOSEngine::confirmOverWrite(WindowBlock *window) {
|
||||
|
||||
int16 AGOSEngine::matchSaveGame(const char *name, uint16 max) {
|
||||
Common::InSaveFile *in;
|
||||
char dst[8];
|
||||
char dst[10];
|
||||
uint16 slot;
|
||||
|
||||
memset(dst, 0, sizeof(dst));
|
||||
for (slot = 0; slot < max; slot++) {
|
||||
if ((in = _saveFileMan->openForLoading(genSaveName(slot)))) {
|
||||
in->read(dst, 8);
|
||||
|
Loading…
x
Reference in New Issue
Block a user