Blame SOURCES/libtar-1.2.11-tar_header.patch

360332
diff -Naur libtar-1.2.11/lib/encode.c libtar-1.2.11.tar_header/lib/encode.c
360332
--- libtar-1.2.11/lib/encode.c	2003-01-07 07:10:59.000000000 +0530
360332
+++ libtar-1.2.11.tar_header/lib/encode.c	2009-11-20 11:13:25.166756167 +0530
360332
@@ -30,7 +30,10 @@
360332
 	int i, sum = 0;
360332
 
360332
 	if (t->options & TAR_GNU)
360332
-		strncpy(t->th_buf.magic, "ustar  ", 8);
360332
+	{
360332
+		memcpy(t->th_buf.magic, "ustar ", 6);
360332
+		memcpy(t->th_buf.version, " \0", 2);
360332
+	}
360332
 	else
360332
 	{
360332
 		strncpy(t->th_buf.version, TVERSION, TVERSLEN);