Commit 9369dfba authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

rsaenh/tests: Fix length of copied buffer.

parent 574de15f
......@@ -459,7 +459,7 @@ static void test_block_cipher_modes(void)
result = derive_key(CALG_RC2, &hKey, 40);
if (!result) return;
memcpy(abData, plain, sizeof(abData));
memcpy(abData, plain, sizeof(plain));
dwMode = CRYPT_MODE_ECB;
result = CryptSetKeyParam(hKey, KP_MODE, (BYTE*)&dwMode, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment