diff options
author | Yang Tse <yangsita@gmail.com> | 2010-08-03 12:00:32 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2010-08-03 12:00:32 +0200 |
commit | 45456135d586e894bc749f9f48d3bc84855636c3 (patch) | |
tree | a982ff1e4b9be1bf00ce09b9d2769f87a70e3824 /lib | |
parent | 52beeb2c9f5f577e72a3ddb93d65154bd36f17c3 (diff) | |
download | curl-45456135d586e894bc749f9f48d3bc84855636c3.tar.gz |
md4: replace bcopy usage with memcpy
Diffstat (limited to 'lib')
-rw-r--r-- | lib/md4.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. */ |