diff options
author | Joe Perches <joe@perches.com> | 2019-07-04 19:57:48 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2019-07-08 23:16:11 -0400 |
commit | c8320ccdd47ebf31e516286b594d1cc36cbaf551 (patch) | |
tree | 08966a0b906d74845a553860b6691c960cea6ddd | |
parent | a57caf8c527f63459c1c70eb3cf55ac373adb88e (diff) |
nfsd: Fix misuse of strlcpy
Probable cut&paste typo - use the correct field size.
(Not currently a practical problem since these two fields have the same
size, but we should fix it anyway.)
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
-rw-r--r-- | fs/nfsd/nfs4idmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4idmap.c b/fs/nfsd/nfs4idmap.c index 2961016097ac..d1f285245af8 100644 --- a/fs/nfsd/nfs4idmap.c +++ b/fs/nfsd/nfs4idmap.c | |||
@@ -83,7 +83,7 @@ ent_init(struct cache_head *cnew, struct cache_head *citm) | |||
83 | new->type = itm->type; | 83 | new->type = itm->type; |
84 | 84 | ||
85 | strlcpy(new->name, itm->name, sizeof(new->name)); | 85 | strlcpy(new->name, itm->name, sizeof(new->name)); |
86 | strlcpy(new->authname, itm->authname, sizeof(new->name)); | 86 | strlcpy(new->authname, itm->authname, sizeof(new->authname)); |
87 | } | 87 | } |
88 | 88 | ||
89 | static void | 89 | static void |