--- cpio-2.6.orig/configure.ac 2004-12-20 08:46:30.000000000 -0200 +++ cpio-2.6/configure.ac 2006-02-18 04:01:24.000000000 -0200 @@ -92,7 +92,7 @@ AC_CONFIG_LINKS(src/fnmatch.h:headers/fnmatch.h) fi -AC_CHECK_FUNCS(lchown endpwent endgrent) +AC_CHECK_FUNCS(lchown endpwent endgrent stpcpy) AC_FUNC_VPRINTF AC_FUNC_ALLOCA AC_CHECK_LIB(nsl, gethostname, [LIBS="$LIBS -lnsl"]) --- cpio-2.6.orig/src/copyout.c 2006-02-18 04:08:13.000000000 -0200 +++ cpio-2.6/src/copyout.c 2006-02-18 04:01:33.000000000 -0200 @@ -356,7 +356,16 @@ char ascii_header[110]; char *p; +#ifdef HAVE_STPCPY p = stpcpy (ascii_header, magic_string); +#else + { + unsigned long __length = strlen (magic_string); + memcpy (ascii_header, magic_string, __length); + p += __length; + } +#endif + to_ascii_or_warn (p, file_hdr->c_ino, 8, LG_16, file_hdr->c_name, _("inode number")); p += 8;