mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Refix the off-by-one that wasn't off-by-one.
This commit is contained in:
parent
591d791791
commit
fa757007d6
2
stream.c
2
stream.c
|
|
@ -717,7 +717,7 @@ void *open_stream_out(int f, int n, i64 limit)
|
|||
* ram. We need enough for the 2 streams and for the compression
|
||||
* backend at most, being conservative. */
|
||||
retest_malloc:
|
||||
testmalloc = malloc(sinfo->bufsize * (n + 2));
|
||||
testmalloc = malloc(sinfo->bufsize * (n + 1));
|
||||
if (!testmalloc) {
|
||||
sinfo->bufsize = sinfo->bufsize / 10 * 9;
|
||||
goto retest_malloc;
|
||||
|
|
|
|||
Loading…
Reference in a new issue