From 158726abf5889a3a6b761adae37c8e56623af11d Mon Sep 17 00:00:00 2001 From: Strangerke Date: Wed, 30 Mar 2016 22:05:54 +0200 Subject: GNAP: Fix crash in DCL decompression --- engines/gnap/datarchive.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/gnap') 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; } -- cgit v1.2.3