| author | |
| committer | |
| log | bd071c98a5f69b5a83ea468708fdcf33f1a6e66c |
| tree | 2180d807de6cd62322d8a21e83cafbb387fe012a |
| parent | 537624734c4db9e0cdbdc0ebce57375d17172a70 |
| signature |
1 files changed, 1 insertions(+), 0 deletions(-)
lib/std/os.zig+1| ... | ... | @@ -5140,6 +5140,7 @@ pub fn getFdPath(fd: fd_t, out_buffer: *[MAX_PATH_BYTES]u8) RealPathError![]u8 { |
| 5140 | 5140 | else => |err| return unexpectedErrno(err), |
| 5141 | 5141 | } |
| 5142 | 5142 | const len = mem.indexOfScalar(u8, &kfile.path, 0) orelse MAX_PATH_BYTES; |
| 5143 | if (len == 0) return error.NameTooLong; | |
| 5143 | 5144 | mem.copy(u8, out_buffer, kfile.path[0..len]); |
| 5144 | 5145 | return out_buffer[0..len]; |
| 5145 | 5146 | } else { |