summaryrefslogtreecommitdiff
blob: 8b919ad8f4ac254d52cbd65ed5b0885e54111fe2 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- lib/encode.c
+++ lib/encode.c
@@ -30,7 +30,7 @@
 	int i, sum = 0;
 
 	if (t->options & TAR_GNU)
-		strncpy(t->th_buf.magic, "ustar  ", 8);
+		strncpy(t->th_buf.magic, "ustar", 6);
 	else
 	{
 		strncpy(t->th_buf.version, TVERSION, TVERSLEN);