| author | |
| committer | |
| log | 7a46c20a79d9724787d55f3e496155bb5332151a |
| tree | 5e203cc29d0d3b56ae355265442102d678341bbe |
| parent | e9bd10cfda23252fb4188033a2edddd0c94d7fa3 |
Co-authored-by: erikarvstedt <36110478+erikarvstedt@users.noreply.github.com>1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/os/linux.zig+1-1| ... | ... | @@ -3621,7 +3621,7 @@ pub const inotify_event = extern struct { |
| 3621 | 3621 | // returns `null` if the directory/file is the one being watched |
| 3622 | 3622 | pub fn getName(self: *const inotify_event) ?[:0]const u8 { |
| 3623 | 3623 | if (self.len == 0) return null; |
| 3624 | return std.mem.sliceTo(@as([*:0]const u8, @ptrCast(self)) + @sizeOf(inotify_event), 0); | |
| 3624 | return std.mem.span(@as([*:0]const u8, @ptrCast(self)) + @sizeOf(inotify_event)); | |
| 3625 | 3625 | } |
| 3626 | 3626 | }; |
| 3627 | 3627 |