diff options
author | Thomas Nordin <nordin@cvs.openbsd.org> | 2002-07-24 23:32:12 +0000 |
---|---|---|
committer | Thomas Nordin <nordin@cvs.openbsd.org> | 2002-07-24 23:32:12 +0000 |
commit | 91bac0badce8821e5cceae8ada8cf033fcf0b3f5 (patch) | |
tree | b4611b89eff7c1e690c3d7c21ecea94997579b3d /sys/nfs | |
parent | 7b88a50fd5c5321589a2613dae3f19b1b2f46ee3 (diff) |
Use sizeof(array) instead of sizeof(array *) for bcopy length. ok deraadt@
Diffstat (limited to 'sys/nfs')
-rw-r--r-- | sys/nfs/nfs_syscalls.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/nfs/nfs_syscalls.c b/sys/nfs/nfs_syscalls.c index 565ef94b6d4..aadac408ce4 100644 --- a/sys/nfs/nfs_syscalls.c +++ b/sys/nfs/nfs_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_syscalls.c,v 1.32 2002/07/12 14:02:23 art Exp $ */ +/* $OpenBSD: nfs_syscalls.c,v 1.33 2002/07/24 23:32:11 nordin Exp $ */ /* $NetBSD: nfs_syscalls.c,v 1.19 1996/02/18 11:53:52 fvdl Exp $ */ /* @@ -1087,7 +1087,7 @@ nfs_getauth(nmp, rep, cred, auth_str, auth_len, verf_str, verf_len, key) else { *auth_len = nmp->nm_authlen; *verf_len = nmp->nm_verflen; - bcopy((caddr_t)nmp->nm_key, (caddr_t)key, sizeof (key)); + bcopy((caddr_t)nmp->nm_key, (caddr_t)key, sizeof (NFSKERBKEY_T)); } nmp->nm_flag &= ~NFSMNT_HASAUTH; nmp->nm_flag |= NFSMNT_WAITAUTH; @@ -1211,7 +1211,7 @@ nfs_savenickauth(nmp, cred, len, key, mdp, dposp, mrep) nuidp->nu_expire = time.tv_sec + NFS_KERBTTL; nuidp->nu_timestamp = ktvout; nuidp->nu_nickname = nick; - bcopy(key, nuidp->nu_key, sizeof (key)); + bcopy(key, nuidp->nu_key, sizeof (NFSKERBKEY_T)); TAILQ_INSERT_TAIL(&nmp->nm_uidlruhead, nuidp, nu_lru); LIST_INSERT_HEAD(NMUIDHASH(nmp, cred->cr_uid), |