Skip to content

Commit 2b6e76f

Browse files
authored
Revert change to advanced
1 parent d027854 commit 2b6e76f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/FoundationEssentials/FileManager/FileManager+Files.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ extension _FileManagerImpl {
542542

543543
var extendedAttrs: [String : Data] = [:]
544544
var current = keyList.baseAddress!
545-
let end = keyList.baseAddress!.advanced(by: size)
545+
let end = keyList.baseAddress!.advanced(by: keyList.count)
546546
while current < end {
547547
let currentKey = String(cString: current)
548548
defer { current = current.advanced(by: currentKey.utf8.count) + 1 /* pass null byte */ }

0 commit comments

Comments
 (0)