diff options
author | Torbjörn Andersson | 2015-11-30 22:39:54 +0100 |
---|---|---|
committer | Torbjörn Andersson | 2015-11-30 22:39:54 +0100 |
commit | 1c841094fa68af4b2797d3f06d7ffbcffb8ac85a (patch) | |
tree | 66b3cddcfa00d4d5dca32dc80c6ddd7f3e2d5ba4 /engines | |
parent | 93b2a2e5c65de34029bc1b8bde18f2c98cb8e4b7 (diff) | |
download | scummvm-rg350-1c841094fa68af4b2797d3f06d7ffbcffb8ac85a.tar.gz scummvm-rg350-1c841094fa68af4b2797d3f06d7ffbcffb8ac85a.tar.bz2 scummvm-rg350-1c841094fa68af4b2797d3f06d7ffbcffb8ac85a.zip |
BBVS: Use memmove(), not memcpy(), for overlapping memory areas
CID 1230310. This fixes the credits easter eggs for me.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/bbvs/bbvs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/bbvs/bbvs.cpp b/engines/bbvs/bbvs.cpp index 1d668f9c34..816b713b1f 100644 --- a/engines/bbvs/bbvs.cpp +++ b/engines/bbvs/bbvs.cpp @@ -1384,7 +1384,7 @@ void BbvsEngine::checkEasterEgg(char key) { }; if (_currSceneNum == kCredits) { - memcpy(&_easterEggInput[1], &_easterEggInput[0], 6); + memmove(&_easterEggInput[1], &_easterEggInput[0], 6); _easterEggInput[0] = key; for (int i = 0; i < ARRAYSIZE(kEasterEggStrings); ++i) { if (!scumm_strnicmp(kEasterEggStrings[i], _easterEggInput, kEasterEggLengths[i])) { |