--- contrib/cpio/src/copyout.c.org 2006-01-11 17:01:31.000000000 +0900 +++ contrib/cpio/src/copyout.c 2008-05-21 18:02:48.000000000 +0900 @@ -371,7 +371,7 @@ write_out_header (struct new_cpio_header /* Debian hack: The type of dev_t has changed in glibc. Fixed output to ensure that a long int is passed to sprintf. This has been reported to "bug-gnu-utils@prep.ai.mit.edu". (1998/5/26) -BEM */ - snprintf (ascii_header, sizeof(ascii_header), + ret = snprintf (ascii_header, sizeof(ascii_header), "%06ho%06lo%06lo%06lo%06lo%06lo%06lo%06lo%011lo%06lo%011lo", file_hdr->c_magic & 0xFFFF, (long) dev & 0xFFFF, file_hdr->c_ino & 0xFFFF, file_hdr->c_mode & 0xFFFF,