aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2016-12-20 23:02:31 -0800
committerEugene Sandulenko2017-01-25 22:42:15 +0100
commit1ae917bda90accd98fa40003eb6d0663207ad97b (patch)
tree5b8c77ac57c8f39bd34042e6d67dd1e5ba271432
parent02c2f4ba6d5363ba3a18b5617d7a53669cdb6e46 (diff)
downloadscummvm-rg350-1ae917bda90accd98fa40003eb6d0663207ad97b.tar.gz
scummvm-rg350-1ae917bda90accd98fa40003eb6d0663207ad97b.tar.bz2
scummvm-rg350-1ae917bda90accd98fa40003eb6d0663207ad97b.zip
CRYO: Fix heap issue
-rw-r--r--engines/cryo/eden.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cryo/eden.cpp b/engines/cryo/eden.cpp
index be5cb5b708..4889721122 100644
--- a/engines/cryo/eden.cpp
+++ b/engines/cryo/eden.cpp
@@ -4931,7 +4931,7 @@ bool EdenGame::ReadDataSyncVOC(unsigned int num) {
loadpartoffile(resNum, &chunkType, sizeof(vocHeader), 1);
filePos++;
if (chunkType == 5) {
- uint16 chunkLen = 0;
+ uint32 chunkLen = 0;
loadpartoffile(resNum, &chunkLen, filePos, 3);
filePos += 3;
chunkLen = LE32(chunkLen);