Fix stdin failing due to getting sizes all wrong.

Fix stdin compression values not being shown at end.
Fix inappropriate failure when lzma doesn't compress block.
This commit is contained in:
Con Kolivas 2010-12-12 17:40:58 +11:00
parent 981859fdba
commit 427df4cd4a
2 changed files with 7 additions and 2 deletions

View file

@ -336,7 +336,8 @@ retry:
* remain uncompressed */
print_verbose("Unable to allocate enough RAM for any sized compression window, falling back to bzip2 compression.\n");
return bzip2_compress_buf(cthread);
}
} else if (lzma_ret == SZ_ERROR_OUTPUT_EOF)
return 0;
return -1;
}