summaryrefslogtreecommitdiff
path: root/usr.sbin/afs
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2004-04-05 12:57:23 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2004-04-05 12:57:23 +0000
commitedda33360f4790b0b4fd1fc5858e21575d348317 (patch)
treef8241fe94418e053c22f476c55199c2e0605ac3d /usr.sbin/afs
parent6599bc487ad75284e3ffffbf0d9d64017841d494 (diff)
Change sizeof(ptr) to the correct sizeof(*ptr) to fix a bug when clearing out
memory. krw@, beck@, deraadt@ ok plus approval from lha at stacken.kth.se.
Diffstat (limited to 'usr.sbin/afs')
-rw-r--r--usr.sbin/afs/src/arlad/d-trans.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/afs/src/arlad/d-trans.c b/usr.sbin/afs/src/arlad/d-trans.c
index aab45290ec3..abe63ec64ee 100644
--- a/usr.sbin/afs/src/arlad/d-trans.c
+++ b/usr.sbin/afs/src/arlad/d-trans.c
@@ -119,7 +119,7 @@ static Bool
tfid_free(void *p, void *arg)
{
struct transform_fid *t = (struct transform_fid *)p;
- memset(t, 0, sizeof(t));
+ memset(t, 0, sizeof(*t));
free(t);
return TRUE;
}