diff --git a/src/kauth/knfs.c b/src/kauth/knfs.c index 4b4be5a53a..81a03d64b7 100644 --- a/src/kauth/knfs.c +++ b/src/kauth/knfs.c @@ -183,7 +183,7 @@ GetTokens(afs_int32 ahost, afs_int32 auid) sprintf(clientName.name, "Unix UID %d", ct.ViceId); clientName.instance[0] = 0; } - strcpy(clientName.cell, tp); + strlcpy(clientName.cell, tp, sizeof(clientName.cell)); tokenExpireTime = token.endTime; strcpy(UserName, clientName.name);