diff options
author | Josh MacDonald <josh.macdonald@gmail.com> | 2014-10-23 22:33:40 -0700 |
---|---|---|
committer | Josh MacDonald <josh.macdonald@gmail.com> | 2014-10-23 22:33:40 -0700 |
commit | ee2d187cc451a277606e4a3452fdc510ac14b19a (patch) | |
tree | c2015a58f65729f20c92a63c30bd5c68b4b2e4dc /xdelta3/xdelta3-decode.h | |
parent | bcb07d68e689c0641be5a5d9b692b779aa9deeb0 (diff) |
checksum_test is working (apparently)
Diffstat (limited to 'xdelta3/xdelta3-decode.h')
-rw-r--r-- | xdelta3/xdelta3-decode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xdelta3/xdelta3-decode.h b/xdelta3/xdelta3-decode.h index c95f8b5..a9dad3f 100644 --- a/xdelta3/xdelta3-decode.h +++ b/xdelta3/xdelta3-decode.h | |||
@@ -947,7 +947,7 @@ xd3_decode_input (xd3_stream *stream) | |||
947 | /* Check copy window bounds: VCD_TARGET window may not exceed | 947 | /* Check copy window bounds: VCD_TARGET window may not exceed |
948 | current position. */ | 948 | current position. */ |
949 | if ((stream->dec_win_ind & VCD_TARGET) && | 949 | if ((stream->dec_win_ind & VCD_TARGET) && |
950 | (stream->dec_cpyoff + (xoff_t) stream->dec_cpylen > | 950 | (stream->dec_cpyoff + stream->dec_cpylen > |
951 | stream->dec_winstart)) | 951 | stream->dec_winstart)) |
952 | { | 952 | { |
953 | stream->msg = "VCD_TARGET window out of bounds"; | 953 | stream->msg = "VCD_TARGET window out of bounds"; |
@@ -1087,7 +1087,7 @@ xd3_decode_input (xd3_stream *stream) | |||
1087 | /* xd3_decode_emit returns XD3_OUTPUT on every success. */ | 1087 | /* xd3_decode_emit returns XD3_OUTPUT on every success. */ |
1088 | if ((ret = xd3_decode_emit (stream)) == XD3_OUTPUT) | 1088 | if ((ret = xd3_decode_emit (stream)) == XD3_OUTPUT) |
1089 | { | 1089 | { |
1090 | stream->total_out += (xoff_t) stream->avail_out; | 1090 | stream->total_out += stream->avail_out; |
1091 | } | 1091 | } |
1092 | 1092 | ||
1093 | return ret; | 1093 | return ret; |