diff options
author | Strangerke | 2016-03-30 22:05:54 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-10 09:54:21 +0200 |
commit | 158726abf5889a3a6b761adae37c8e56623af11d (patch) | |
tree | ab38bdec5db290990f82106cc146d32931574905 | |
parent | 29d989ac0e75cfb59173141851ad8f2131a58461 (diff) | |
download | scummvm-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.cpp | 2 |
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; } |