mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-01-15 04:49:57 +01:00
Must give the memcpy the sb low offset to work properly.
This commit is contained in:
parent
dbc71eceb1
commit
754088feb9
2
rzip.c
2
rzip.c
|
|
@ -203,7 +203,7 @@ static void sliding_mcpy(rzip_control *control, unsigned char *buf, i64 offset,
|
|||
/* See if we fit in the low buffer first and use the faster function
|
||||
* where possible */
|
||||
if (offset >= sb->offset_low && offset + len < sb->offset_low + sb->size_low) {
|
||||
single_mcpy(control, buf, offset, len);
|
||||
single_mcpy(control, buf, offset - sb->offset_low, len);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue