From 8e9f518caaa99392bb2ff3edc8ae5a57129a1439 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Wed, 27 May 2020 16:20:39 -0600 Subject: [PATCH] fix for gcc 10+ error on snprintf --- src/ssl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index 9362b6bdc..33eff33ed 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -34639,7 +34639,8 @@ int wolfSSL_RSA_print(WOLFSSL_BIO* bio, WOLFSSL_RSA* rsa, int offset) RsaKey* iRsa = NULL; int i = 0; mp_int *rsaElem = NULL; - char rsaStr[][20] = { "Modulus:", + const char *rsaStr[] = { + "Modulus:", "PublicExponent:", "PrivateExponent:", "Prime1:",