summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/main.zig4
1 files changed, 2 insertions, 2 deletions
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;
}