cdvdgigaherz: Fix read past the end of the buffer

This commit is contained in:
Jonathan Li 2016-12-17 22:38:04 +00:00
parent f2edc50675
commit 5a63a62454
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,7 @@ s32 cdvdDirectReadSector(u32 sector, s32 mode, u8 *buffer)
memcpy(buffer, bfr + 12, 2340);
return 0;
default:
memcpy(buffer, bfr + 12, 2352);
memcpy(buffer, bfr, 2352);
return 0;
}
}