libarchive: Use memcpy() when constructing buffers.
authorzrj <rimvydas.jasinskas@gmail.com>
Tue, 30 Jan 2018 16:25:54 +0000 (18:25 +0200)
committerzrj <zrj@dragonflybsd.org>
Fri, 2 Feb 2018 12:47:00 +0000 (14:47 +0200)
commitbe16867234e89aa9cc5f9a12e3836f84f5268b80
tree7d8b526c730ade50c9c79a29d9413455e44e6b8e
parent671e8f5ed8343d46cb5d24dd4936cde234473070
libarchive: Use memcpy() when constructing buffers.

Avoid common mistakes that strncpy() will terminate the string.
Results here are not expected to be NULL terminated.
contrib/libarchive/libarchive/archive_write_set_format_ar.c
contrib/libarchive/tar/read.c
contrib/libarchive/tar/write.c