Commit 86ec56b2 authored by Al Viro's avatar Al Viro Committed by Greg Kroah-Hartman
Browse files

hostfs: fix string handling in __dentry_name()



[ Upstream commit 60a60024 ]

strcpy() should not be used with destination potentially overlapping
the source; what's more, strscpy() in there is pointless - we already
know the amount we want to copy; might as well use memcpy().

Fixes: c278e81b "hostfs: Remove open coded strcpy()"
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent d073828f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment