Skip to content

Commit 133f53f

Browse files
committed
replace sizeof with MAX_ECIES_TEST_SZ
1 parent 6ae38f1 commit 133f53f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/test/test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37576,7 +37576,7 @@ static wc_test_ret_t ecc_ctx_kdf_salt_test(WC_RNG* rng, ecc_key* a, ecc_key* b)
3757637576
}
3757737577

3757837578
XMEMSET(plaintext, 0, MAX_ECIES_TEST_SZ);
37579-
XSTRLCPY((char *)plaintext, message, sizeof plaintext);
37579+
XSTRLCPY((char *)plaintext, message, MAX_ECIES_TEST_SZ);
3758037580
plaintextLen = (((word32)XSTRLEN(message) + WC_AES_BLOCK_SIZE - 1) /
3758137581
WC_AES_BLOCK_SIZE) * WC_AES_BLOCK_SIZE;
3758237582

0 commit comments

Comments
 (0)