Fix divide by zero error when a file is smaller than the page size and compressed with -U.

This commit is contained in:
Con Kolivas 2010-11-30 11:22:02 +11:00
parent 22da2ee76d
commit f2b5852872

2
rzip.c
View file

@ -105,6 +105,8 @@ struct sliding_buffer {
static void round_to_page(i64 *size)
{
*size -= *size % control.page_size;
if (unlikely(!*size))
*size = control.page_size;
}
static void remap_low_sb(void)