diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-21 14:38:16 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-21 14:44:48 -0300 |
| commit | d5c37d9122240fe95d308fbe15874e14dd786c5a (patch) | |
| tree | 3ed108d2af5bd7a5cb07491b16e855e5243b5d63 /web/main.zig | |
| parent | fe9772b178575fcab93de09fc61c2f13db7db1a8 (diff) | |
| download | cloud9-d5c37d9122240fe95d308fbe15874e14dd786c5a.tar.gz cloud9-d5c37d9122240fe95d308fbe15874e14dd786c5a.zip | |
Build with Zig 0.17
Diffstat (limited to 'web/main.zig')
| -rw-r--r-- | web/main.zig | 4 |
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; } |
