From a3072c7a8dc43bbf50792cc3d25a5c4d67fdea04 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Thu, 18 Dec 2025 17:18:39 -0700 Subject: [PATCH] fix for shadows global declaration warning --- src/internal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/internal.c b/src/internal.c index 111eb9ffd..042245852 100644 --- a/src/internal.c +++ b/src/internal.c @@ -42234,11 +42234,11 @@ static int DisplaySecTrustError(CFErrorRef error, SecTrustRef trust) /* Description */ desc = CFErrorCopyDescription(error); if (desc) { - char buffer[256]; - if (CFStringGetCString(desc, buffer, sizeof(buffer), + char buf[256]; + if (CFStringGetCString(desc, buf, sizeof(buf), kCFStringEncodingUTF8)) { WOLFSSL_MSG_EX("SecTrustEvaluateWithError Error description: %s\n", - buffer); + buf); } CFRelease(desc); }