Merge pull request #2688 from kaleb-himes/GH2552

use const to declare array rather than variable sz - VS doesn't like …
This commit is contained in:
David Garske
2019-12-19 08:52:30 -08:00
committed by GitHub

View File

@ -8500,7 +8500,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)) {