git: libarchive: Use memcpy() when constructing buffers.
Rimvydas Jasinskas
zrj at crater.dragonflybsd.org
Fri Feb 2 04:42:02 PST 2018
commit be16867234e89aa9cc5f9a12e3836f84f5268b80
Author: zrj <rimvydas.jasinskas at gmail.com>
Date: Tue Jan 30 18:25:54 2018 +0200
libarchive: Use memcpy() when constructing buffers.
Avoid common mistakes that strncpy() will terminate the string.
Results here are not expected to be NULL terminated.
Summary of changes:
contrib/libarchive/libarchive/archive_write_set_format_ar.c | 6 +++---
contrib/libarchive/tar/read.c | 2 +-
contrib/libarchive/tar/write.c | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/be16867234e89aa9cc5f9a12e3836f84f5268b80
--
DragonFly BSD source repository
More information about the Commits
mailing list