Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Joe Perches and committed by
J. Bruce Fields
c8320ccd a57caf8c

+1 -1
+1 -1
fs/nfsd/nfs4idmap.c
··· 83 83 new->type = itm->type; 84 84 85 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 89 static void