aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2016-03-30 22:05:54 +0200
committerEugene Sandulenko2016-05-10 09:54:21 +0200
commit158726abf5889a3a6b761adae37c8e56623af11d (patch)
treeab38bdec5db290990f82106cc146d32931574905
parent29d989ac0e75cfb59173141851ad8f2131a58461 (diff)
downloadscummvm-rg350-158726abf5889a3a6b761adae37c8e56623af11d.tar.gz
scummvm-rg350-158726abf5889a3a6b761adae37c8e56623af11d.tar.bz2
scummvm-rg350-158726abf5889a3a6b761adae37c8e56623af11d.zip
GNAP: Fix crash in DCL decompression
-rw-r--r--engines/gnap/datarchive.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/gnap/datarchive.cpp b/engines/gnap/datarchive.cpp
index 7f5dadfe9b..a0423c1f29 100644
--- a/engines/gnap/datarchive.cpp
+++ b/engines/gnap/datarchive.cpp
@@ -61,7 +61,7 @@ byte *DatArchive::load(int index) {
_fd->seek(_entries[index]._ofs);
debug(1, "_entries[index].outSize2: %d; _entries[index].outSize1: %d", _entries[index]._outSize2, _entries[index]._outSize1);
byte *buffer = new byte[_entries[index]._outSize1];
- if (!Common::decompressDCL(_fd, buffer, 0, _entries[index]._outSize1))
+ if (!Common::decompressDCL(_fd, buffer, _entries[index]._outSize2, _entries[index]._outSize1))
error("DatArchive::load() Error during decompression of entry %d", index);
return buffer;
}