diff options
author | Max Horn | 2004-09-20 20:56:10 +0000 |
---|---|---|
committer | Max Horn | 2004-09-20 20:56:10 +0000 |
commit | 6bafcf81d117364291dbdd01efd23936e4489f39 (patch) | |
tree | 8d8746ed3550935b1dd0fea8e7616bde79191d0d /scumm | |
parent | 3b9bcb7745834c6482b0502e7fbeca4e2af59fb0 (diff) | |
download | scummvm-rg350-6bafcf81d117364291dbdd01efd23936e4489f39.tar.gz scummvm-rg350-6bafcf81d117364291dbdd01efd23936e4489f39.tar.bz2 scummvm-rg350-6bafcf81d117364291dbdd01efd23936e4489f39.zip |
Fix array out of bounds access
svn-id: r15208
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/scumm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/scumm.cpp b/scumm/scumm.cpp index f09f410c81..0672ce4e8c 100644 --- a/scumm/scumm.cpp +++ b/scumm/scumm.cpp @@ -435,8 +435,8 @@ ScummEngine::ScummEngine(GameDetector *detector, OSystem *syst, const ScummGameS gdi(this), _pauseDialog(0), _optionsDialog(0), _mainMenuDialog(0), _versionDialog(0), _targetName(detector->_targetName) { - // Copy md5sum - for (int i = 0; i < 17; i++) _gameMD5[i] = md5sum[i]; + // Copy MD5 checksum + memcpy(_gameMD5, md5sum, 16); // Add default file directories. if (((_features & GF_AMIGA) || (_features & GF_ATARI_ST)) && (_version <= 4)) { |