From 7714a5e00f2b71735ab1e063a62cb950010736f3 Mon Sep 17 00:00:00 2001 From: vm03 Date: Tue, 20 Aug 2019 15:36:26 +0300 Subject: [PATCH] little optimized --- payload_dumper.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/payload_dumper.py b/payload_dumper.py index 79661be..aedf048 100644 --- a/payload_dumper.py +++ b/payload_dumper.py @@ -73,9 +73,8 @@ def data_for_op(op,out_file,old_file): tmp_buff.write(old_data) tmp_buff.seek(0) old_data = tmp_buff.read() - data = bsdiff4.patch(old_data, data) tmp_buff.seek(0) - tmp_buff.write(data) + tmp_buff.write(bsdiff4.patch(old_data, data)) n = 0; tmp_buff.seek(0) for ext in op.dst_extents: