aboutsummaryrefslogtreecommitdiff
path: root/lib/hcrypto/rc2.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hcrypto/rc2.c')
-rw-r--r--lib/hcrypto/rc2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hcrypto/rc2.c b/lib/hcrypto/rc2.c
index 02b684cbd4b0..53d32cf0417e 100644
--- a/lib/hcrypto/rc2.c
+++ b/lib/hcrypto/rc2.c
@@ -105,7 +105,7 @@ RC2_set_key(RC2_KEY *key, int len, const unsigned char *data, int bits)
for (j = 0; j < 64; j++)
key->data[j] = k[(j * 2) + 0] | (k[(j * 2) + 1] << 8);
- memset(k, 0, sizeof(k));
+ memset_s(k, sizeof(k), 0, sizeof(k));
}
#define ROT16L(w,n) ((w<<n)|(w>>(16-n)))