From de8efc8186251c8dc22b291a891921ffd4e2f148 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Thu, 8 Nov 1990 15:21:10 +0000 Subject: [PATCH] use memcpm rather than bcmp git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1428 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/des/weak_key.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/crypto/des/weak_key.c b/src/lib/crypto/des/weak_key.c index 6ebf070b6..6643b2d7a 100644 --- a/src/lib/crypto/des/weak_key.c +++ b/src/lib/crypto/des/weak_key.c @@ -68,7 +68,7 @@ mit_des_is_weak_key(key) mit_des_cblock *weak_p = weak; for (i = 0; i < (sizeof(weak)/sizeof(mit_des_cblock)); i++) { - if (!bcmp((char *)weak_p++,(char *)key,sizeof(mit_des_cblock))) + if (!memcmp((char *)weak_p++,(char *)key,sizeof(mit_des_cblock))) return 1; } -- 2.26.2