SHA256
1
0
forked from pool/cpio
cpio/cpio-2.9-avoid_overflow_warning.patch

12 lines
297 B
Diff

--- src/tar.c
+++ src/tar.c
@@ -217,7 +217,7 @@
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)