diff options
author | Eugene Sandulenko | 2013-10-17 13:45:25 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-10-17 13:45:25 +0300 |
commit | b0ade3a637be7a2b324a75d6d667d546975cbf82 (patch) | |
tree | fcf542cfeb1fde183f653c63ec50ed5bfc048d8d /engines/drascula | |
parent | bc082166596597b894b169ea82d06129c690e8bb (diff) | |
download | scummvm-rg350-b0ade3a637be7a2b324a75d6d667d546975cbf82.tar.gz scummvm-rg350-b0ade3a637be7a2b324a75d6d667d546975cbf82.tar.bz2 scummvm-rg350-b0ade3a637be7a2b324a75d6d667d546975cbf82.zip |
DRASCULA: Fix potential buffer overrun. CID 1003311
Diffstat (limited to 'engines/drascula')
-rw-r--r-- | engines/drascula/converse.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/drascula/converse.cpp b/engines/drascula/converse.cpp index 95a5f7d87f..2aa12e106b 100644 --- a/engines/drascula/converse.cpp +++ b/engines/drascula/converse.cpp @@ -168,19 +168,19 @@ void DrasculaEngine::converse(int index) { // delete stream; if (currentChapter == 2 && !strcmp(fileName, "op_5.cal") && flags[38] == 1 && flags[33] == 1) { - strcpy(phrase3, _text[405]); + strlcpy(phrase3, _text[405], 128); strcpy(sound3, "405.als"); answer3 = 31; } if (currentChapter == 6 && !strcmp(fileName, "op_12.cal") && flags[7] == 1) { - strcpy(phrase3, _text[273]); + strlcpy(phrase3, _text[273], 128); strcpy(sound3, "273.als"); answer3 = 14; } if (currentChapter == 6 && !strcmp(fileName, "op_12.cal") && flags[10] == 1) { - strcpy(phrase3, _text[274]); + strlcpy(phrase3, _text[274], 128); strcpy(sound3, "274.als"); answer3 = 15; } |