Commit 60a60024 authored by Al Viro's avatar Al Viro
Browse files

hostfs: fix string handling in __dentry_name()



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>
parent 40384c84
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment