Fix compiler diff for unsafe

This commit is contained in:
Max Goedjen
2026-06-19 23:28:11 -07:00
parent 702e3f2cb0
commit 688b6380bd

View File

@@ -166,7 +166,7 @@ private extension sockaddr_un {
mutating func setPath(_ path: String) -> Int {
#if compiler(<6.4)
unsafe withUnsafeMutablePointer(to: &addr.sun_path.0) { pointer in
unsafe withUnsafeMutablePointer(to: &self.sun_path.0) { pointer in
unsafe path.withCString { cstring in
let len = unsafe strlen(cstring)
unsafe strncpy(pointer, cstring, len)