--- cpio-2.7/src/util.c.warnings 2006-11-03 15:27:03.000000000 +0100 +++ cpio-2.7/src/util.c 2006-11-03 15:32:52.000000000 +0100 @@ -98,6 +98,8 @@ output_size = 0; } +int sparse_write (int fildes, char *buf, unsigned int nbyte); + /* Write `output_size' bytes of `output_buffer' to file descriptor OUT_DES and reset `output_size' and `out_buff'. If `swapping_halfwords' or `swapping_bytes' is set, @@ -1111,8 +1113,8 @@ int complete_block_count; int leftover_bytes_count; int seek_count; - int write_count; - char *cur_write_start; + int write_count = 0; + char *cur_write_start = buf; int lseek_rc; int write_rc; int i;