| author | |
| committer | |
| log | 7c161d74c77ef9d482bb71273163fd454674240b |
| tree | fad8cb5eccc2f6a216bc945c87c8b52edca3c267 |
| parent | aaea5467f1a8b4c2ce7129ee7bc6bf2e11544167 |
| signature |
1 files changed, 1 insertions(+), 0 deletions(-)
mod.zig+1| ... | ... | @@ -3466,6 +3466,7 @@ pub fn readlinkat(dirfd: c_int, noalias path: [*:0]const u8, noalias buf: []u8) |
| 3466 | 3466 | const rc = libc.readlinkat(dirfd, path, buf.ptr, buf.len); |
| 3467 | 3467 | if (rc == -1) return errno.fromInt(errno.fromLibC()); |
| 3468 | 3468 | std.debug.assert(rc >= 0); |
| 3469 | buf[@intCast(rc)] = 0; | |
| 3469 | 3470 | return buf[0..@intCast(rc) :0]; |
| 3470 | 3471 | } |
| 3471 | 3472 | pub fn write(fd: c_int, buf: []const u8) !usize { |