mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Wrong check in rzip.c will leave a small chunk with unlimited mode.
This commit is contained in:
parent
5eaa1cc42b
commit
ab656aa98a
2
rzip.c
2
rzip.c
|
|
@ -798,7 +798,7 @@ void rzip_fd(int fd_in, int fd_out)
|
||||||
else
|
else
|
||||||
control.max_chunk = control.ramsize / 3 * 2;
|
control.max_chunk = control.ramsize / 3 * 2;
|
||||||
control.max_mmap = MIN(control.max_mmap, control.max_chunk);
|
control.max_mmap = MIN(control.max_mmap, control.max_chunk);
|
||||||
if (control.max_mmap < control.st_size)
|
if (control.max_chunk < control.st_size)
|
||||||
round_to_page(&control.max_chunk);
|
round_to_page(&control.max_chunk);
|
||||||
|
|
||||||
if (!STDIN)
|
if (!STDIN)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue