Use copy over intrinsics.mem_copy_non_overlapping

This commit is contained in:
gingerBill
2025-03-24 11:31:05 +00:00
parent 4a595f9dac
commit 2b8c76354d
2 changed files with 9 additions and 12 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
#+private
package os2
import "base:intrinsics"
import "base:runtime"
import "core:strings"
import win32 "core:sys/windows"
@@ -271,7 +270,7 @@ _clean_path_handle_start :: proc(path: string, buffer: []u8) -> (rooted: bool, s
// Take `C:` to `C:\`.
start += 1
}
intrinsics.mem_copy_non_overlapping(raw_data(buffer), raw_data(path), start)
copy(buffer, path[:start])
}
return
}