diff options
Diffstat (limited to 'lib/sqfs')
-rw-r--r-- | lib/sqfs/data_reader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqfs/data_reader.c b/lib/sqfs/data_reader.c index 2b111db..18719fe 100644 --- a/lib/sqfs/data_reader.c +++ b/lib/sqfs/data_reader.c @@ -75,8 +75,8 @@ static int precache_data_block(data_reader_t *data, off_t location, if (ret < 0) return -1; - if (size < data->block_size) - memset((char *)data->block + size, 0, data->block_size - size); + if ((size_t)ret < data->block_size) + memset((char *)data->block + ret, 0, data->block_size - ret); data->current_block = location; return 0; |