aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTorbjörn Andersson2013-04-28 14:15:29 +0200
committerTorbjörn Andersson2013-04-28 14:15:29 +0200
commit5bcc20cdd051b4a589339fcbb81b8f4bccc05ca0 (patch)
tree305c6e0fac0db9086684410423ea69a544400fd8 /engines
parent2dd6206f76903a4757896ffec99c0aa840607eb0 (diff)
downloadscummvm-rg350-5bcc20cdd051b4a589339fcbb81b8f4bccc05ca0.tar.gz
scummvm-rg350-5bcc20cdd051b4a589339fcbb81b8f4bccc05ca0.tar.bz2
scummvm-rg350-5bcc20cdd051b4a589339fcbb81b8f4bccc05ca0.zip
SWORD2: Fix potential allocation size mismatch. CID 1003324.
Diffstat (limited to 'engines')
-rw-r--r--engines/sword2/console.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword2/console.cpp b/engines/sword2/console.cpp
index 28e2e8ce7b..4838bd15f6 100644
--- a/engines/sword2/console.cpp
+++ b/engines/sword2/console.cpp
@@ -173,7 +173,7 @@ bool Debugger::Cmd_Mem(int argc, const char **argv) {
int16 numBlocks = _vm->_memory->getNumBlocks();
MemBlock *memBlocks = _vm->_memory->getMemBlocks();
- MemBlock **blocks = (MemBlock **)malloc(numBlocks * sizeof(MemBlock));
+ MemBlock **blocks = (MemBlock **)malloc(numBlocks * sizeof(MemBlock *));
int i, j;