summaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorMathieu Malaterre <malat@debian.org>2019-07-17 01:29:15 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2019-07-17 04:23:23 +0200
commit29774f3f4e5af8f01dc5410e807b32ac6b765106 (patch)
treedbd6339e2c087900f6cc9170a4aadcf1cf78299c /lib/debugobjects.c
parentcoda: add hinting support for partial file caching (diff)
downloadlinux-29774f3f4e5af8f01dc5410e807b32ac6b765106.tar.xz
linux-29774f3f4e5af8f01dc5410e807b32ac6b765106.zip
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>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions