From 7c4bf44f1ad059e9b8bd68f0e5f73926b73163d7 Mon Sep 17 00:00:00 2001 From: Tommy Pauly Date: Thu, 6 Aug 2026 11:43:26 -0700 Subject: [PATCH] Access string length via utf8 (Embedded fix) --- Sources/SwiftNetwork/Endpoint/AddressEndpoint.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SwiftNetwork/Endpoint/AddressEndpoint.swift b/Sources/SwiftNetwork/Endpoint/AddressEndpoint.swift index 413dce9..a162c21 100644 --- a/Sources/SwiftNetwork/Endpoint/AddressEndpoint.swift +++ b/Sources/SwiftNetwork/Endpoint/AddressEndpoint.swift @@ -98,7 +98,7 @@ public struct AddressEndpoint: EndpointProtocol, EndpointCommonProtocol { #else let max = 104 // This is sun_path[104] #endif - if max < path.count { + if max < path.utf8.count { Logger.endpoint.fault("Path \(path) is too large for a unix domain address") return nil }