From d5c37d9122240fe95d308fbe15874e14dd786c5a Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 21 Oct 2026 14:38:16 -0300 Subject: Build with Zig 0.17 --- web/main.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web') diff --git a/web/main.zig b/web/main.zig index 7222d91..130ed4b 100644 --- a/web/main.zig +++ b/web/main.zig @@ -95,7 +95,7 @@ fn parseUpstream(allocator: std.mem.Allocator, text: []const u8) !mux.Address { if (std.mem.startsWith(u8, text, "tcp:")) return .{ .network = .{ .tcp = try Io.net.IpAddress.parseLiteral(text[4..]) } }; if (std.mem.startsWith(u8, text, "unix:")) - return .{ .network = .{ .unix = try allocator.dupeZ(u8, text[5..]) } }; + return .{ .network = .{ .unix = try allocator.dupeSentinel(u8, text[5..], 0) } }; if (std.mem.startsWith(u8, text, "file:")) return .{ .file = text[5..] }; return error.InvalidUpstream; @@ -105,7 +105,7 @@ fn parseServe(allocator: std.mem.Allocator, text: []const u8) !c9.transport.Addr if (std.mem.startsWith(u8, text, "tcp:")) return .{ .tcp = try Io.net.IpAddress.parseLiteral(text[4..]) }; if (std.mem.startsWith(u8, text, "unix:")) - return .{ .unix = try allocator.dupeZ(u8, text[5..]) }; + return .{ .unix = try allocator.dupeSentinel(u8, text[5..], 0) }; return error.InvalidServe; } -- cgit v1.3