diff options
author | Eugene Sandulenko | 2016-05-10 13:41:40 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-10 18:07:35 +0200 |
commit | 0d356d1c666620fc01d60872edb03ee55b046689 (patch) | |
tree | 9c605bc7319768a47539d6fd34d38dddf76cf3fd /engines/agi/op_test.cpp | |
parent | 2e77891b9ed09759533c725daec47c77fdbd0bf4 (diff) | |
download | scummvm-rg350-0d356d1c666620fc01d60872edb03ee55b046689.tar.gz scummvm-rg350-0d356d1c666620fc01d60872edb03ee55b046689.tar.bz2 scummvm-rg350-0d356d1c666620fc01d60872edb03ee55b046689.zip |
AGI: Safer string copying
Diffstat (limited to 'engines/agi/op_test.cpp')
-rw-r--r-- | engines/agi/op_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agi/op_test.cpp b/engines/agi/op_test.cpp index 4b215edc63..4505668fd1 100644 --- a/engines/agi/op_test.cpp +++ b/engines/agi/op_test.cpp @@ -231,8 +231,8 @@ uint8 AgiEngine::testCompareStrings(uint8 s1, uint8 s2) { char ms2[MAX_STRINGLEN]; int j, k, l; - strcpy(ms1, _game.strings[s1]); - strcpy(ms2, _game.strings[s2]); + Common::strlcpy(ms1, _game.strings[s1], MAX_STRINGLEN); + Common::strlcpy(ms2, _game.strings[s2], MAX_STRINGLEN); l = strlen(ms1); for (k = 0, j = 0; k < l; k++) { |