From 18107257bac5acd09b0549c1c827aeed712623a4 Mon Sep 17 00:00:00 2001 From: Max Goedjen Date: Fri, 19 Jun 2026 22:02:53 -0700 Subject: [PATCH] Xcode 26 change --- .../Packages/Sources/SecretAgentKit/SocketController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Packages/Sources/SecretAgentKit/SocketController.swift b/Sources/Packages/Sources/SecretAgentKit/SocketController.swift index f5ec990..0649a38 100644 --- a/Sources/Packages/Sources/SecretAgentKit/SocketController.swift +++ b/Sources/Packages/Sources/SecretAgentKit/SocketController.swift @@ -150,8 +150,8 @@ private extension SocketPort { convenience init(path: String) { var addr = sockaddr_un() - let length = withUnsafeMutablePointer(to: &addr.sun_path.0) { pointer in - path.withCString { cstring in + let length = unsafe withUnsafeMutablePointer(to: &addr.sun_path.0) { pointer in + unsafe path.withCString { cstring in let len = unsafe strlen(cstring) unsafe strncpy(pointer, cstring, len) return len