mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Forgot to include salt length for next head.
This commit is contained in:
parent
30b70dc884
commit
f87528d14d
3
lrzip.c
3
lrzip.c
|
|
@ -655,7 +655,10 @@ void decompress_file(rzip_control *control)
|
|||
print_output("Output filename is: %s: ", control->outfile);
|
||||
if (!expected_size)
|
||||
expected_size = control->st_size;
|
||||
if (!ENCRYPT)
|
||||
print_progress("[OK] - %lld bytes \n", expected_size);
|
||||
else
|
||||
print_progress("[OK] \n");
|
||||
|
||||
if (unlikely(close(fd_hist) || close(fd_out)))
|
||||
fatal("Failed to close files\n");
|
||||
|
|
|
|||
2
stream.c
2
stream.c
|
|
@ -1335,7 +1335,7 @@ retry:
|
|||
if (ENCRYPT)
|
||||
rewrite_encrypted(control, ctis, ctis->s[cti->streamno].last_head - 17);
|
||||
|
||||
ctis->s[cti->streamno].last_head = ctis->cur_pos + 1 + (write_len * 2);
|
||||
ctis->s[cti->streamno].last_head = ctis->cur_pos + 1 + (write_len * 2) + (ENCRYPT ? SALT_LEN : 0);
|
||||
if (unlikely(seekto(control, ctis, ctis->cur_pos)))
|
||||
fatal("Failed to seekto cur_pos in compthread %d\n", i);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue