Fix bug in address_to_string() helper

This commit is contained in:
Gustavo Moreira
2025-01-31 19:49:04 +11:00
parent b91724c3ef
commit 815b2fe918
+1 -1
View File
@@ -127,7 +127,7 @@ def address_to_string(
layer = context.layers[layer_name]
text = b""
while len(text) <= count:
while len(text) < count:
current_block_size = min(count - len(text), block_size)
temp_text = layer.read(address + len(text), current_block_size)
idx = temp_text.find(b"\x00")