Commit a8843dea by Thomas Roth

Use same hex format for subdirectories as used in the text output.

parent 9d0cbb0e
......@@ -588,7 +588,7 @@ class Extractor(Module):
# Extract into subdirectories named by the offset
if self.extract_into_subdirs:
# Remove trailing L that is added by hex()
offset_dir = hex(offset).rstrip("L")
offset_dir = "0x%X" % offset
os.mkdir(offset_dir)
os.chdir(offset_dir)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment