Add fields for temporary input buffer and clamp memory accordingly in preparation.

This commit is contained in:
Con Kolivas 2011-03-14 14:47:26 +11:00
parent 5f7a03932b
commit 684959efed
5 changed files with 34 additions and 13 deletions

2
main.c
View file

@ -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;