Blob Blame History Raw
diff -urNp cpio-2.9.90-orig/src/tar.c cpio-2.9.90/src/tar.c
--- cpio-2.9.90-orig/src/tar.c	2007-06-27 16:00:13.000000000 +0200
+++ cpio-2.9.90/src/tar.c	2009-12-01 12:33:51.000000000 +0100
@@ -217,7 +217,7 @@ write_out_tar_header (struct cpio_file_s
       char *name;
 
       strncpy (tar_hdr->magic, TMAGIC, TMAGLEN);
-      strncpy (tar_hdr->magic + TMAGLEN, TVERSION, TVERSLEN);
+      strncpy (tar_hdr->version, TVERSION, TVERSLEN);
 
       name = getuser (file_hdr->c_uid);
       if (name)