From 6899a43b722c3cb2672a38eba28490141d9bd32f Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Thu, 10 Dec 2009 19:34:47 +0000 Subject: [PATCH] Don't use sizeof(pointertype) to get the length of an allocated array git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23464 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/krb/checksum/confounder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/crypto/krb/checksum/confounder.c b/src/lib/crypto/krb/checksum/confounder.c index e8c6bd9c4..6429a195f 100644 --- a/src/lib/crypto/krb/checksum/confounder.c +++ b/src/lib/crypto/krb/checksum/confounder.c @@ -45,7 +45,7 @@ mk_xorkey(krb5_key origkey, krb5_key *xorkey) if (xorbytes == NULL) return ENOMEM; memcpy(xorbytes, origkey->keyblock.contents, origkey->keyblock.length); - for (i = 0; i < sizeof(xorbytes); i++) + for (i = 0; i < origkey->keyblock.length; i++) xorbytes[i] ^= 0xf0; /* Do a shallow copy here. */ -- 2.26.2