linux/fs/hfsplus
Mathieu Malaterre 29774f3f4e fs/hfsplus/xattr.c: replace strncpy with memcpy
strncpy() was used to copy a fixed size buffer.  Since NUL-terminating
string is not required here, prefer a memcpy function.  The generated
code (ppc32) remains the same.

Silence the following warning triggered using W=1:

  fs/hfsplus/xattr.c:410:3: warning: 'strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]

Link: http://lkml.kernel.org/r/20190529113341.11972-1-malat@debian.org
Signed-off-by: Mathieu Malaterre <malat@debian.org>
Reviewed-by: Vyacheslav Dubeyko <slava@dubeyko.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-07-16 19:23:23 -07:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile
attributes.c
bfind.c
bitmap.c
bnode.c
brec.c
btree.c
catalog.c
dir.c hfsplus: return file attributes on statx 2019-01-04 13:13:47 -08:00
extents.c
hfsplus_fs.h hfsplus: return file attributes on statx 2019-01-04 13:13:47 -08:00
hfsplus_raw.h
inode.c hfsplus: return file attributes on statx 2019-01-04 13:13:47 -08:00
ioctl.c vfs: create a generic checking and prep function for FS_IOC_SETFLAGS 2019-07-01 08:25:34 -07:00
options.c
part_tbl.c
super.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
tables.c
unicode.c
wrapper.c
xattr.c fs/hfsplus/xattr.c: replace strncpy with memcpy 2019-07-16 19:23:23 -07:00
xattr.h
xattr_security.c
xattr_trusted.c
xattr_user.c