diff options
Diffstat (limited to 'xdelta3/xdelta3-decode.h')
-rw-r--r-- | xdelta3/xdelta3-decode.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xdelta3/xdelta3-decode.h b/xdelta3/xdelta3-decode.h index 6b3815f..3266425 100644 --- a/xdelta3/xdelta3-decode.h +++ b/xdelta3/xdelta3-decode.h | |||
@@ -231,9 +231,8 @@ xd3_decode_section (xd3_stream *stream, | |||
231 | } | 231 | } |
232 | 232 | ||
233 | IF_DEBUG2 (DP(RINT "[xd3_decode_section] take %u @ %u[%u] size %u\n", | 233 | IF_DEBUG2 (DP(RINT "[xd3_decode_section] take %u @ %u[%u] size %u\n", |
234 | section->pos, sect_take, section->alloc1, section->size)); | 234 | sect_take, section->pos, section->alloc1, section->size)); |
235 | 235 | XD3_ASSERT (section->pos + sect_take <= section->alloc1); | |
236 | XD3_ASSERT (section->pos + sect_take < section->alloc1); | ||
237 | 236 | ||
238 | memcpy (section->copied1 + section->pos, | 237 | memcpy (section->copied1 + section->pos, |
239 | stream->next_in, | 238 | stream->next_in, |
@@ -249,6 +248,7 @@ xd3_decode_section (xd3_stream *stream, | |||
249 | 248 | ||
250 | if (section->pos < section->size) | 249 | if (section->pos < section->size) |
251 | { | 250 | { |
251 | IF_DEBUG1 (DP(RINT "[xd3_decode_section] further input required %u\n", section->size - section->pos)); | ||
252 | stream->msg = "further input required"; | 252 | stream->msg = "further input required"; |
253 | return XD3_INPUT; | 253 | return XD3_INPUT; |
254 | } | 254 | } |