From: Joe Perches Date: Thu, 4 Jul 2019 23:57:48 +0000 (-0700) Subject: nfsd: Fix misuse of strlcpy X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=c8320ccdd47ebf31e516286b594d1cc36cbaf551;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: J. Bruce Fields --- 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) new->type = itm->type; strlcpy(new->name, itm->name, sizeof(new->name)); - strlcpy(new->authname, itm->authname, sizeof(new->name)); + strlcpy(new->authname, itm->authname, sizeof(new->authname)); } static void