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); }