From 6c74b0235d12374f5f8b0729226cb3270baa97bb Mon Sep 17 00:00:00 2001 From: Christian Vogelgsang Date: Tue, 22 Aug 2023 21:57:12 +0200 Subject: [PATCH] fs: fixed reading ffs+dircache images --- amitools/fs/block/DirCacheBlock.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/amitools/fs/block/DirCacheBlock.py b/amitools/fs/block/DirCacheBlock.py index 1154433b..5b5b8212 100644 --- a/amitools/fs/block/DirCacheBlock.py +++ b/amitools/fs/block/DirCacheBlock.py @@ -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()