Skip to content

Commit

Permalink
fs: fixed reading ffs+dircache images
Browse files Browse the repository at this point in the history
  • Loading branch information
cnvogelg committed Aug 22, 2023
1 parent 5b9bb48 commit 6c74b02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions amitools/fs/block/DirCacheBlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ def get(self, data, off):
self.size = d[1]
self.protect = d[2]
self.mod_ts = TimeStamp(d[5], d[6], d[7])
self.type = ord(data[off + 22])
self.type = data[off + 22]
# name
name_len = ord(data[off + 23])
name_len = data[off + 23]
name_off = off + 24
self.name = FSString(data[name_off : name_off + name_len])
# comment
comment_len = ord(data[off + name_len + 24])
comment_len = data[off + name_len + 24]
comment_off = off + 25 + name_len
self.comment = FSString(data[comment_off : comment_off + comment_len])
return off + self.get_size()
Expand Down

0 comments on commit 6c74b02

Please sign in to comment.