Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
p-x9 committed Jun 13, 2024
1 parent cd9d698 commit 657891c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/MachOKit/Extension/FileHandle+.swift
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,9 @@ extension FileHandle {
var offset = offset
while true {
let new = readData(offset: offset, size: Int(step))
if new.contains(0) || new.isEmpty { break }
if new.isEmpty { break }
data.append(new)
if new.contains(0) { break }
offset += UInt64(new.count)
}

Expand Down

0 comments on commit 657891c

Please sign in to comment.