summaryrefslogtreecommitdiff
path: root/xdelta3/xdelta3-decode.h
diff options
context:
space:
mode:
Diffstat (limited to 'xdelta3/xdelta3-decode.h')
-rw-r--r--xdelta3/xdelta3-decode.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/xdelta3/xdelta3-decode.h b/xdelta3/xdelta3-decode.h
index 3266425..65877a4 100644
--- a/xdelta3/xdelta3-decode.h
+++ b/xdelta3/xdelta3-decode.h
@@ -207,6 +207,8 @@ xd3_decode_section (xd3_stream *stream,
207 /* No allocation/copy needed */ 207 /* No allocation/copy needed */
208 section->buf = stream->next_in; 208 section->buf = stream->next_in;
209 sect_take = section->size; 209 sect_take = section->size;
210 IF_DEBUG1 (DP(RINT "[xd3_decode_section] zerocopy %u @ %u avail %u\n",
211 sect_take, section->pos, stream->avail_in));
210 } 212 }
211 else 213 else
212 { 214 {
@@ -230,8 +232,8 @@ xd3_decode_section (xd3_stream *stream,
230 section->buf = section->copied1; 232 section->buf = section->copied1;
231 } 233 }
232 234
233 IF_DEBUG2 (DP(RINT "[xd3_decode_section] take %u @ %u[%u] size %u\n", 235 IF_DEBUG2 (DP(RINT "[xd3_decode_section] take %u @ %u [need %u] avail %u\n",
234 sect_take, section->pos, section->alloc1, section->size)); 236 sect_take, section->pos, sect_need, stream->avail_in));
235 XD3_ASSERT (section->pos + sect_take <= section->alloc1); 237 XD3_ASSERT (section->pos + sect_take <= section->alloc1);
236 238
237 memcpy (section->copied1 + section->pos, 239 memcpy (section->copied1 + section->pos,