mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
One last check on limit.
This commit is contained in:
parent
738cde54ed
commit
fd9bbfe64a
1
stream.c
1
stream.c
|
|
@ -989,6 +989,7 @@ void *open_stream_out(rzip_control *control, int f, unsigned int n, i64 chunk_li
|
|||
limit = (control->maxram - (control->overhead * control->threads)) / testbufs;
|
||||
limit = MIN(limit, chunk_limit);
|
||||
}
|
||||
limit = MAX(limit, STREAM_BUFSIZE);
|
||||
retest_malloc:
|
||||
testsize = (limit * testbufs) + (control->overhead * control->threads);
|
||||
testmalloc = malloc(testsize);
|
||||
|
|
|
|||
Loading…
Reference in a new issue