mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-04-04 13:57:40 +00:00
Add fields for temporary input buffer and clamp memory accordingly in preparation.
This commit is contained in:
parent
5f7a03932b
commit
684959efed
5 changed files with 34 additions and 13 deletions
2
main.c
2
main.c
|
|
@ -700,7 +700,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
/* Use less ram when using STDOUT to store the temporary output
|
||||
* file. */
|
||||
if (STDOUT && !(DECOMPRESS || TEST_ONLY))
|
||||
if (STDOUT && ((STDIN && DECOMPRESS) || !(DECOMPRESS || TEST_ONLY)))
|
||||
control.maxram = control.ramsize * 2 / 9;
|
||||
else
|
||||
control.maxram = control.ramsize / 3;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue