diff options
Diffstat (limited to 'engines/cine/part.cpp')
-rw-r--r-- | engines/cine/part.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/cine/part.cpp b/engines/cine/part.cpp index 37bf41ec69..5346a380a9 100644 --- a/engines/cine/part.cpp +++ b/engines/cine/part.cpp @@ -193,8 +193,7 @@ void readFromPart(int16 idx, byte *dataPtr) { byte *readBundleFile(int16 foundFileIdx) { byte *dataPtr; - dataPtr = (byte *) malloc(partBuffer[foundFileIdx].unpackedSize); - memset(dataPtr, 0, partBuffer[foundFileIdx].unpackedSize); + dataPtr = (byte *)calloc(partBuffer[foundFileIdx].unpackedSize, 1); if (partBuffer[foundFileIdx].unpackedSize != partBuffer[foundFileIdx].packedSize) { byte *unpackBuffer; |