diff options
author | josh.macdonald <jmacd@users.noreply.github.com> | 2010-02-16 05:52:14 +0000 |
---|---|---|
committer | josh.macdonald <jmacd@users.noreply.github.com> | 2010-02-16 05:52:14 +0000 |
commit | c301114d6e4f11e0a690205900cbf3186ea77ba4 (patch) | |
tree | a1989a1e4fa26d65fb7868f79386d862c8a717b4 /xdelta3/xdelta3.c | |
parent | f0ff7729714bb176234a85db28273d0d6b4ea4b3 (diff) |
Undo recent "off-by-one" fix, it was incorrect (the bug was actually
the issue about updating the value of xd3_source_eof() in the same change).
Diffstat (limited to 'xdelta3/xdelta3.c')
-rw-r--r-- | xdelta3/xdelta3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xdelta3/xdelta3.c b/xdelta3/xdelta3.c index ed31709..544184f 100644 --- a/xdelta3/xdelta3.c +++ b/xdelta3/xdelta3.c | |||
@@ -5128,7 +5128,7 @@ xd3_srcwin_move_point (xd3_stream *stream, usize_t *next_move_point) | |||
5128 | { | 5128 | { |
5129 | source_size = xd3_source_eof (stream->src); | 5129 | source_size = xd3_source_eof (stream->src); |
5130 | 5130 | ||
5131 | if (stream->srcwin_cksum_pos > source_size) | 5131 | if (stream->srcwin_cksum_pos >= source_size) |
5132 | { | 5132 | { |
5133 | /* This invariant is needed for xd3_source_cksum_offset() */ | 5133 | /* This invariant is needed for xd3_source_cksum_offset() */ |
5134 | stream->srcwin_cksum_pos = source_size; | 5134 | stream->srcwin_cksum_pos = source_size; |