mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2024-11-29 11:51:14 +00:00
Corrected segment offset for the data in the segment
This commit is contained in:
parent
4b64010bc7
commit
c4820a26c5
@ -231,9 +231,9 @@ class AtariDosFile(object):
|
||||
count = end - start + 1
|
||||
found = len(bytes[pos + 4:pos + 4 + count])
|
||||
if found < count:
|
||||
self.segments.append(ObjSegment(pos, pos + 4, start, end, bytes[pos:pos + count], "Incomplete Data"))
|
||||
self.segments.append(ObjSegment(pos, pos + 4, start, end, bytes[pos + 4:pos + 4 + count], "Incomplete Data"))
|
||||
break
|
||||
self.segments.append(ObjSegment(pos, pos + 4, start, end, bytes[pos:pos + count]))
|
||||
self.segments.append(ObjSegment(pos, pos + 4, start, end, bytes[pos + 4:pos + 4 + count]))
|
||||
pos += 4 + count
|
||||
|
||||
class AtrDiskImageFromFile(object):
|
||||
|
Loading…
Reference in New Issue
Block a user