read_compressed_wim_resource(): Fix reading chunk table
authorEric Biggers <ebiggers3@gmail.com>
Mon, 23 Dec 2013 20:07:25 +0000 (14:07 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Mon, 23 Dec 2013 20:07:25 +0000 (14:07 -0600)
src/resource.c

index 6bc6fbf..3256a2b 100644 (file)
@@ -338,7 +338,7 @@ read_compressed_wim_resource(const struct wim_resource_spec * const rspec,
                        chunk_offsets_alloc_size -
                        chunk_table_size_to_read;
 
-               ret = full_pread(in_fd, chunk_table_data, chunk_table_size,
+               ret = full_pread(in_fd, chunk_table_data, chunk_table_size_to_read,
                                 file_offset_of_needed_chunk_entries);
                if (ret)
                        goto read_error;