From b156a51e82e2d0a3645dec4b74cdc6a8b472d342 Mon Sep 17 00:00:00 2001 From: Colton Willey Date: Wed, 15 May 2024 09:51:00 -0700 Subject: [PATCH] Code cleanup per review comments --- tests/api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/api.c b/tests/api.c index 319eb48f6a..9bda2d1ec7 100644 --- a/tests/api.c +++ b/tests/api.c @@ -41245,9 +41245,9 @@ static int test_wolfSSL_X509_bad_altname(void) }; X509* x509 = NULL; - int certSize = sizeof(malformed_alt_name_cert) / sizeof(unsigned char); + int certSize = (int)sizeof(malformed_alt_name_cert) / sizeof(unsigned char); const char *name = "aaaaa"; - int nameLen = (int)strlen(name); + int nameLen = (int)XSTRLEN(name); ExpectNotNull(x509 = wolfSSL_X509_load_certificate_buffer( malformed_alt_name_cert, certSize, SSL_FILETYPE_ASN1));