aboutsummaryrefslogtreecommitdiff
path: root/crypto/bn/bn_intern.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/bn/bn_intern.c')
-rw-r--r--crypto/bn/bn_intern.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/bn/bn_intern.c b/crypto/bn/bn_intern.c
index 139d11b..c3ea561 100644
--- a/crypto/bn/bn_intern.c
+++ b/crypto/bn/bn_intern.c
@@ -211,8 +211,8 @@ int bn_copy_words(BN_ULONG *out, const BIGNUM *in, int size)
if (in->top > size)
return 0;
- memset(out, 0, sizeof(BN_ULONG) * size);
- memcpy(out, in->d, sizeof(BN_ULONG) * in->top);
+ memset(out, 0, sizeof(*out) * size);
+ memcpy(out, in->d, sizeof(*out) * in->top);
return 1;
}