mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-04-21 06:03:54 +00:00
Must give the memcpy the sb low offset to work properly.
This commit is contained in:
parent
dbc71eceb1
commit
754088feb9
1 changed files with 1 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue