diff options
Diffstat (limited to '9agents/src/main.zig')
| -rw-r--r-- | 9agents/src/main.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/9agents/src/main.zig b/9agents/src/main.zig index 3e7c290..f564e4b 100644 --- a/9agents/src/main.zig +++ b/9agents/src/main.zig @@ -222,7 +222,7 @@ fn run(init: std.process.Init) !void { std.debug.print("9agents: unknown root {s} (claude, codex, omp, hermes, dsh)\n", .{name}); return error.Usage; }; - base_overrides[@intFromEnum(root)] = v[eq + 1 ..]; + base_overrides[@backingInt(root)] = v[eq + 1 ..]; } } else if (std.mem.eql(u8, a, "--help") or std.mem.eql(u8, a, "-h")) { std.debug.print("{s}", .{usage_text}); @@ -316,7 +316,7 @@ fn run(init: std.process.Init) !void { } switch (mode) { .unix => { - _ = try runner.listen(.{ .unix = try arena.dupeZ(u8, unix_path) }, 16); + _ = try runner.listen(.{ .unix = try arena.dupeSentinel(u8, unix_path, 0) }, 16); std.debug.print("9agents: listening on {s}\n", .{unix_path}); }, .tcp => { |
