diff --git a/Sources/Deflate.swift b/Sources/Deflate.swift index 6f6e2075..d674cf2b 100644 --- a/Sources/Deflate.swift +++ b/Sources/Deflate.swift @@ -70,8 +70,11 @@ public class Deflate: DecompressionAlgorithm { // Process uncompressed data into the output // TODO: Replace precondition with guard and error throwing. precondition(pointerData.bitMask == 1, "Misaligned byte.") + var ind = out.count + out.append(contentsOf: Array(repeating: 0, count: length)) for _ in 0..