diff options
Diffstat (limited to 'src/watcher.zig')
-rw-r--r-- | src/watcher.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/watcher.zig b/src/watcher.zig index f35c16bc0..0fe05fd48 100644 --- a/src/watcher.zig +++ b/src/watcher.zig @@ -696,7 +696,7 @@ pub fn NewWatcher(comptime ContextType: type) type { } else if (comptime Environment.isLinux) { // var file_path_to_use_ = std.mem.trimRight(u8, file_path_, "/"); // var buf: [bun.MAX_PATH_BYTES+1]u8 = undefined; - // std.mem.copy(u8, &buf, file_path_to_use_); + // bun.copy(u8, &buf, file_path_to_use_); // buf[file_path_to_use_.len] = 0; var buf = file_path_.ptr; var slice: [:0]const u8 = buf[0..file_path_.len :0]; @@ -778,7 +778,7 @@ pub fn NewWatcher(comptime ContextType: type) type { } else if (Environment.isLinux) { var file_path_to_use_ = std.mem.trimRight(u8, file_path_, "/"); var buf: [bun.MAX_PATH_BYTES + 1]u8 = undefined; - std.mem.copy(u8, &buf, file_path_to_use_); + bun.copy(u8, &buf, file_path_to_use_); buf[file_path_to_use_.len] = 0; var slice: [:0]u8 = buf[0..file_path_to_use_.len :0]; index = try INotify.watchDir(slice); |