mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-01-02 14:40:06 +01:00
Tidy.
This commit is contained in:
parent
091909b552
commit
cb1f630fe0
5
rzip.c
5
rzip.c
|
|
@ -679,10 +679,7 @@ static void mmap_stdin(rzip_control *control, uchar *buf, struct rzip_state *st)
|
|||
|
||||
total = 0;
|
||||
while (len > 0) {
|
||||
if (len > one_g)
|
||||
ret = one_g;
|
||||
else
|
||||
ret = len;
|
||||
ret = MIN(len, one_g);
|
||||
ret = read(0, offset_buf, (size_t)ret);
|
||||
if (unlikely(ret < 0))
|
||||
fatal("Failed to read in mmap_stdin\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue