replaced snprintf with BIO version (for windows builds)
Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8571)
This commit is contained in:
parent
9c0cf214e7
commit
f4b4574f4b
2 changed files with 4 additions and 4 deletions
|
@ -35,9 +35,9 @@ static int test_provider(OSSL_PROVIDER *prov)
|
|||
if (!TEST_ptr(name = ossl_provider_name(prov)))
|
||||
return 0;
|
||||
|
||||
snprintf(expected_greeting, sizeof(expected_greeting),
|
||||
"Hello OpenSSL %.20s, greetings from %s!",
|
||||
OPENSSL_VERSION_STR, name);
|
||||
BIO_snprintf(expected_greeting, sizeof(expected_greeting),
|
||||
"Hello OpenSSL %.20s, greetings from %s!",
|
||||
OPENSSL_VERSION_STR, name);
|
||||
|
||||
ret =
|
||||
TEST_true(ossl_provider_activate(prov))
|
||||
|
|
|
@ -32,7 +32,7 @@ static int test_provider(const char *name)
|
|||
const char *greeting = NULL;
|
||||
char expected_greeting[256];
|
||||
|
||||
snprintf(expected_greeting, sizeof(expected_greeting),
|
||||
BIO_snprintf(expected_greeting, sizeof(expected_greeting),
|
||||
"Hello OpenSSL %.20s, greetings from %s!",
|
||||
OPENSSL_VERSION_STR, name);
|
||||
|
||||
|
|
Loading…
Reference in a new issue