use const to declare array rather than variable sz - VS doesn't like this

This commit is contained in:
kaleb-himes
2019-12-18 16:08:26 -08:00
parent c0716b9e3f
commit 95c0c1f2a5

View File

@@ -8492,7 +8492,7 @@ int wolfSSL_X509V3_EXT_print(WOLFSSL_BIO *out, WOLFSSL_X509_EXTENSION *ext,
int nid;
const int sz = CTC_NAME_SIZE*2;
int rc = WOLFSSL_FAILURE;
char tmp[sz];
char tmp[CTC_NAME_SIZE*2];
WOLFSSL_ENTER("wolfSSL_X509V3_EXT_print");
if ((out == NULL) || (ext == NULL)) {