md4: replace bcopy usage with memcpy
authorYang Tse <yangsita@gmail.com>
Tue, 3 Aug 2010 10:00:32 +0000 (12:00 +0200)
committerYang Tse <yangsita@gmail.com>
Tue, 3 Aug 2010 10:00:32 +0000 (12:00 +0200)
lib/md4.c

index 7000083..0dfea88 100644 (file)
--- a/lib/md4.c
+++ b/lib/md4.c
@@ -122,7 +122,7 @@ static void MD4Update(MD4_CTX *context, const unsigned char *input,
   /* Transform as many times as possible.
    */
   if (inputLen >= partLen) {
-    bcopy(input, &context->buffer[bufindex], partLen);
+    memcpy((void *)&context->buffer[bufindex], (void *)input, partLen);
     MD4Transform (context->state, context->buffer);
 
     for (i = partLen; i + 63 < inputLen; i += 64)
@@ -134,7 +134,7 @@ static void MD4Update(MD4_CTX *context, const unsigned char *input,
     i = 0;
 
   /* Buffer remaining input */
-  bcopy(&input[i], &context->buffer[bufindex], inputLen-i);
+  memcpy((void *)&context->buffer[bufindex], (void *)&input[i], inputLen-i);
 }
 
 /* MD4 padding. */