From 568184f53fc9f672eb8ce6c81bf513d9ab047279 Mon Sep 17 00:00:00 2001 From: Ethan Looney Date: Tue, 25 Aug 2020 14:08:02 -0600 Subject: [PATCH] Changed len from hardcoded value to sizeof oid --- tests/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api.c b/tests/api.c index 22e0acf89..f93076364 100644 --- a/tests/api.c +++ b/tests/api.c @@ -20774,8 +20774,8 @@ static int test_wc_ecc_get_curve_id_from_oid (void) int ret = 0; #if defined(HAVE_ECC) && !defined(NO_ECC256) && !defined(HAVE_SELFTEST) && \ !defined(HAVE_FIPS) - word32 len = 8; const byte oid[] = {0x2A,0x86,0x48,0xCE,0x3D,0x03,0x01,0x07}; + word32 len = sizeof(oid); printf(testingFmt, "wc_ecc_get_curve_id_from_oid()");