aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2013-10-17 13:40:17 +0300
committerEugene Sandulenko2013-10-17 13:40:17 +0300
commit66e683039510ce0d1b08995d902a60e0ceef4e25 (patch)
tree24e9a0c5c4b56c9cdbc8aae9af6b2adc7eac0a76 /engines
parentdf73f27f67eaa96e93f624ff641e20bd61f151d4 (diff)
downloadscummvm-rg350-66e683039510ce0d1b08995d902a60e0ceef4e25.tar.gz
scummvm-rg350-66e683039510ce0d1b08995d902a60e0ceef4e25.tar.bz2
scummvm-rg350-66e683039510ce0d1b08995d902a60e0ceef4e25.zip
DRASCULA: Fix potential buffer overrun. CID 1003309
Diffstat (limited to 'engines')
-rw-r--r--engines/drascula/drascula.cpp2
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);