Better use BIO_snprintf() than snprintf(), in case the later isn't available

Reviewed-by: Tim Hudson <tjh@openssl.org>
This commit is contained in:
Richard Levitte 2016-04-07 13:03:29 +02:00
parent e9c2b10014
commit 2d5a82570a

View File

@ -186,8 +186,8 @@ static void tear_down(SSL_TEST_FIXTURE fixture)
static int test_handshake(int idx) static int test_handshake(int idx)
{ {
SETUP_SSL_TEST_FIXTURE(); SETUP_SSL_TEST_FIXTURE();
snprintf(fixture.test_app, sizeof(fixture.test_app), BIO_snprintf(fixture.test_app, sizeof(fixture.test_app),
"test-%d", idx); "test-%d", idx);
EXECUTE_SSL_TEST(); EXECUTE_SSL_TEST();
} }