From 3e7a6054a9cd9356d493945f984cd1fdb981e5eb Mon Sep 17 00:00:00 2001 From: Tesfa Mael Date: Thu, 2 May 2019 14:13:48 -0700 Subject: [PATCH] Use the macro instead of sizeof() --- examples/benchmark/tls_bench.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/benchmark/tls_bench.c b/examples/benchmark/tls_bench.c index 2644fa6f3..5941d7fc2 100644 --- a/examples/benchmark/tls_bench.c +++ b/examples/benchmark/tls_bench.c @@ -1372,7 +1372,7 @@ int bench_tls(void* args) if (ciphers == NULL) { goto exit; } - wolfSSL_get_ciphers(ciphers, (int)sizeof(ciphers)); + wolfSSL_get_ciphers(ciphers, WOLFSSL_CIPHER_LIST_MAX_SIZE); cipher = ciphers; }