diff --git a/NEWS b/NEWS index 8ffd1d62..ea48edbd 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,8 @@ For a more comprehensive changelog of the latest experimental code, see: - Fix handling of output path for the compress_touche tool. - Fix handling of input path for the extract_cine tool. It was only working when run from the directory that contains the game data. + - Fix memory corruption that could cause random errors during extraction when + using the extract_cine tool. 1.9.0 (2016-10-27) - Fix random crashes in the tool to convert Broken Sword 1 speech files. diff --git a/engines/cine/extract_cine.cpp b/engines/cine/extract_cine.cpp index 09b8db9a..7df05ccc 100644 --- a/engines/cine/extract_cine.cpp +++ b/engines/cine/extract_cine.cpp @@ -260,7 +260,7 @@ void ExtractCine::unpackAllResourceFiles(const Common::Filename &filename) { unpackedSize = f.readUint32BE(); packedSize = f.readUint32BE(); } else { - unpackedSize = packedSize = f.pos(); /* Get file size */ + unpackedSize = packedSize = f.size(); /* Get file size */ f.seek(0, SEEK_SET); } }