From 8002e745e0c4199a5b57cddd8b2de12a1515a636 Mon Sep 17 00:00:00 2001 From: "Caleb J. Gardner" Date: Tue, 17 Mar 2026 22:17:11 -0500 Subject: [PATCH] Fixed using the wrong decompression function for gzip --- src/decomp.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/decomp.zig b/src/decomp.zig index de77c23..f9ade6f 100644 --- a/src/decomp.zig +++ b/src/decomp.zig @@ -43,7 +43,7 @@ fn zigGzip(alloc: std.mem.Allocator, in: []u8, out: []u8) anyerror!usize { fn cGzip(alloc: std.mem.Allocator, in: []u8, out: []u8) anyerror!usize { _ = alloc; var out_len: usize = out.len; - const res = c.zng_uncompress2(out.ptr, &out_len, in.ptr, in.len); + const res = c.zng_uncompress(out.ptr, &out_len, in.ptr, in.len); return switch (res) { c.Z_OK => out_len, c.Z_MEM_ERROR => error.NotEnoughMemory,