| ... | ... | @@ -7209,7 +7209,7 @@ fn processExecutablePath(userdata: ?*anyopaque, out_buffer: []u8) std.process.Ex |
| 7209 | 7209 | .openbsd, .haiku => { |
| 7210 | 7210 | // The best we can do on these operating systems is check based on |
| 7211 | 7211 | // the first process argument. |
| 7212 | | const argv0 = t.argv0.value orelse return error.OperationUnsupported; |
| 7212 | const argv0 = std.mem.span(t.argv0.value orelse return error.OperationUnsupported); |
| 7213 | 7213 | if (std.mem.findScalar(u8, argv0, '/') != null) { |
| 7214 | 7214 | // argv[0] is a path (relative or absolute): use realpath(3) directly |
| 7215 | 7215 | const current_thread = Thread.getCurrent(t); |
| ... | ... | @@ -12153,7 +12153,7 @@ fn scanEnviron(t: *Threaded) void { |
| 12153 | 12153 | |
| 12154 | 12154 | var end_i: usize = line_i; |
| 12155 | 12155 | while (line[end_i] != 0) : (end_i += 1) {} |
| 12156 | | const value = line[line_i + 1 .. end_i]; |
| 12156 | const value = line[line_i + 1 .. end_i :0]; |
| 12157 | 12157 | |
| 12158 | 12158 | if (std.mem.eql(u8, key, "NO_COLOR")) { |
| 12159 | 12159 | t.environ.exist.NO_COLOR = true; |
| ... | ... | @@ -12171,7 +12171,7 @@ fn scanEnviron(t: *Threaded) void { |
| 12171 | 12171 | |
| 12172 | 12172 | var end_i: usize = line_i; |
| 12173 | 12173 | while (line[end_i] != 0) : (end_i += 1) {} |
| 12174 | | const value = line[line_i + 1 .. end_i]; |
| 12174 | const value = line[line_i + 1 .. end_i :0]; |
| 12175 | 12175 | |
| 12176 | 12176 | if (std.mem.eql(u8, key, "NO_COLOR")) { |
| 12177 | 12177 | t.environ.exist.NO_COLOR = true; |