Skip to content

Commit 2bdb33b

Browse files
committed
fix(pseudofiles): write-to-file model ignores seek offset
1 parent 780a98c commit 2bdb33b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyplugins/interventions/pseudofiles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ def write_to_file(self, filename, buffer, length,
635635
f"Writing {fname} with {length} bytes at {offset}: {contents[:100]}"
636636
)
637637

638-
with open(fname, "ab") as f:
638+
with open(fname, "r+b") as f:
639639
f.seek(offset)
640640
f.write(contents)
641641

0 commit comments

Comments
 (0)