Commit c8320ccd authored by Joe Perches's avatar Joe Perches Committed by J. Bruce Fields

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: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent a57caf8c
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment