diff options
author | Eugene Sandulenko | 2013-10-17 13:40:17 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-10-17 13:40:17 +0300 |
commit | 66e683039510ce0d1b08995d902a60e0ceef4e25 (patch) | |
tree | 24e9a0c5c4b56c9cdbc8aae9af6b2adc7eac0a76 /engines/drascula | |
parent | df73f27f67eaa96e93f624ff641e20bd61f151d4 (diff) | |
download | scummvm-rg350-66e683039510ce0d1b08995d902a60e0ceef4e25.tar.gz scummvm-rg350-66e683039510ce0d1b08995d902a60e0ceef4e25.tar.bz2 scummvm-rg350-66e683039510ce0d1b08995d902a60e0ceef4e25.zip |
DRASCULA: Fix potential buffer overrun. CID 1003309
Diffstat (limited to 'engines/drascula')
-rw-r--r-- | engines/drascula/drascula.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp index cde00baa32..d7e80acf12 100644 --- a/engines/drascula/drascula.cpp +++ b/engines/drascula/drascula.cpp @@ -297,7 +297,7 @@ Common::Error DrasculaEngine::run() { memset(iconName, 0, sizeof(iconName)); for (i = 0; i < 6; i++) - strcpy(iconName[i + 1], _textverbs[i]); + strlcpy(iconName[i + 1], _textverbs[i], 13); assignPalette(defaultPalette); |