summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh MacDonald <josh.macdonald@gmail.com>2015-12-26 22:00:07 -0800
committerJosh MacDonald <josh.macdonald@gmail.com>2015-12-26 22:00:07 -0800
commit9a76ffd0fa6041a28a17748614d01dcd392a8de7 (patch)
tree27e39b5d42ae7367954f58a15f29a9365ab26322
parentbe9efeece7e5d94a7b11a90c5edd10b2182f7fca (diff)
Restore 2 block advancement (arbitrary)
-rw-r--r--xdelta3/xdelta3.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/xdelta3/xdelta3.c b/xdelta3/xdelta3.c
index adb1507..976b219 100644
--- a/xdelta3/xdelta3.c
+++ b/xdelta3/xdelta3.c
@@ -4398,11 +4398,10 @@ xd3_srcwin_move_point (xd3_stream *stream, usize_t *next_move_point)
4398 /* TODO: The addition of 2 blocks here is arbitrary. Do a 4398 /* TODO: The addition of 2 blocks here is arbitrary. Do a
4399 * better job of stream alignment based on observed source copy 4399 * better job of stream alignment based on observed source copy
4400 * addresses, and when both input sizes are known, the 4400 * addresses, and when both input sizes are known, the
4401 * difference in size. 4401 * difference in size. */
4402 */
4403 target_cksum_pos = absolute_input_pos + 4402 target_cksum_pos = absolute_input_pos +
4404 stream->src->max_winsize / 2 + 4403 stream->src->max_winsize / 2 +
4405 /*stream->src->blksize * 2*/; 4404 stream->src->blksize * 2;
4406 target_cksum_pos &= ~stream->src->maskby; 4405 target_cksum_pos &= ~stream->src->maskby;
4407 } 4406 }
4408 4407