use memcpm rather than bcmp
authorJohn Kohl <jtkohl@mit.edu>
Thu, 8 Nov 1990 15:21:10 +0000 (15:21 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Thu, 8 Nov 1990 15:21:10 +0000 (15:21 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1428 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/des/weak_key.c

index 6ebf070b6ba5755e81769966e8473625278f6084..6643b2d7a33af936a8f62d96f9cfa42f3d65f654 100644 (file)
@@ -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;
     }