Fix decompressing single chunk stdout chunked archives.

This commit is contained in:
Con Kolivas 2011-03-13 18:14:50 +11:00
parent e0a0e6b277
commit b17540d32e

View file

@ -265,7 +265,7 @@ i64 runzip_fd(rzip_control *control, int fd_in, int fd_out, int fd_hist, i64 exp
md5_init_ctx (&control->ctx);
gettimeofday(&start,NULL);
while (total < expected_size || !control->eof) {
while (total < expected_size || !total || !control->eof) {
total += runzip_chunk(control, fd_in, fd_out, fd_hist, expected_size, total);
if (STDOUT)
dump_tmpoutfile(control, fd_out);