From f55feb0de5b563b0567e767218f44d51792d9b43 Mon Sep 17 00:00:00 2001 From: Nathan McRae Date: Tue, 14 Jan 2025 20:42:55 -0800 Subject: [PATCH] Fix allocation error --- src/main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.zig b/src/main.zig index 3057b4e..7cb08a3 100644 --- a/src/main.zig +++ b/src/main.zig @@ -109,7 +109,7 @@ pub fn main() !void { }); if (std.mem.eql(u8, entry.name[(entry.name.len - 4)..(entry.name.len)], ".org")) { std.debug.print("Added\n", .{}); - try file_paths.append(entry_path[0..(entry_path.len - 1)]); + try file_paths.append(entry_path[0..(entry_path.len)]); } else { allocator.free(entry_path); }