Updated unsquashfs for zig 0.16.0
Fixed a couple bugs Added scaffold for extraction
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@ pub fn init(alloc: std.mem.Allocator, rdr: *Reader, size: u32) !Directory {
|
||||
}
|
||||
}
|
||||
|
||||
return entries.toOwnedSlice(alloc);
|
||||
return .{ .entries = try entries.toOwnedSlice(alloc) };
|
||||
}
|
||||
pub fn deinit(self: Directory, alloc: std.mem.Allocator) void {
|
||||
for (self.entries) |entry|
|
||||
|
||||
Reference in New Issue
Block a user