Blame SOURCES/libtar-1.2.11-tar_header.patch

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