| author | |
| committer | |
| log | 2e9415d8a0645adbfcce6e9dc7f6bbf6be233b6f |
| tree | 216ae8f85823cd7fc34f22bfd4442d5c25925761 |
| parent | 0dbcf97551765d3abbaea5fb0b9e94e5e0be1b14 |
2 files changed, 2 insertions(+), 1 deletions(-)
lib/std/Io/Threaded.zig+1| ... | ... | @@ -4302,6 +4302,7 @@ fn realPathPosix(current_thread: *Thread, fd: posix.fd_t, out_buffer: []u8) File |
| 4302 | 4302 | } |
| 4303 | 4303 | const len = std.mem.findScalar(u8, &k_file.path, 0) orelse k_file.path.len; |
| 4304 | 4304 | if (len == 0) return error.NameTooLong; |
| 4305 | @memcpy(out_buffer[0..len], k_file.path[0..len]); | |
| 4305 | 4306 | return len; |
| 4306 | 4307 | }, |
| 4307 | 4308 | else => return error.OperationUnsupported, |
lib/std/c/freebsd.zig+1-1| ... | ... | @@ -250,7 +250,7 @@ pub const kinfo_file = extern struct { |
| 250 | 250 | /// Reserved for future cap_rights |
| 251 | 251 | _cap_spare: u64, |
| 252 | 252 | /// Path to file, if any. |
| 253 | path: [PATH_MAX - 1:0]u8, | |
| 253 | path: [PATH_MAX]u8, | |
| 254 | 254 | |
| 255 | 255 | comptime { |
| 256 | 256 | assert(@sizeOf(@This()) == KINFO_FILE_SIZE); |