| ... | ... | @@ -2251,7 +2251,7 @@ pub fn selfExePath(out_buffer: []u8) SelfExePathError![]u8 { |
| 2251 | 2251 | const PATH = std.os.getenvZ("PATH") orelse return error.FileNotFound; |
| 2252 | 2252 | var path_it = mem.tokenize(PATH, &[_]u8{path.delimiter}); |
| 2253 | 2253 | while (path_it.next()) |a_path| { |
| 2254 | | var resolved_path_buf: [MAX_PATH_BYTES]u8 = undefined; |
| 2254 | var resolved_path_buf: [MAX_PATH_BYTES-1:0]u8 = undefined; |
| 2255 | 2255 | const resolved_path = std.fmt.bufPrintZ(&resolved_path_buf, "{s}/{s}", .{ |
| 2256 | 2256 | a_path, |
| 2257 | 2257 | os.argv[0], |