aboutsummaryrefslogtreecommitdiff
path: root/src/bundler.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/bundler.zig')
-rw-r--r--src/bundler.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bundler.zig b/src/bundler.zig
index fb0a11be7..ec8f6b5df 100644
--- a/src/bundler.zig
+++ b/src/bundler.zig
@@ -1601,7 +1601,7 @@ pub const Bundler = struct {
// All non-absolute paths are ./paths
if (path_to_use[0] != '/' and path_to_use[0] != '.') {
tmp_buildfile_buf3[0..2].* = "./".*;
- @memcpy(tmp_buildfile_buf3[2..], path_to_use.ptr, path_to_use.len);
+ @memcpy(tmp_buildfile_buf3[2..][0..path_to_use.len], path_to_use);
path_to_use = tmp_buildfile_buf3[0 .. 2 + path_to_use.len];
}