From: Richard Levitte Date: Wed, 3 Feb 2016 21:41:14 +0000 (+0100) Subject: Use BIO_snprintf() rather than snprintf() X-Git-Tag: OpenSSL_1_1_0-pre3~296 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6339ece1d80054ebb27dc1fafbe57a18d294b2c3;p=oweals%2Fopenssl.git Use BIO_snprintf() rather than snprintf() Some platforms do not have the latter. Reviewed-by: Matt Caswell --- diff --git a/test/ssltest.c b/test/ssltest.c index 5d6700e97d..9cd2a53e50 100644 --- a/test/ssltest.c +++ b/test/ssltest.c @@ -1890,7 +1890,7 @@ int doit_localhost(SSL *s_ssl, SSL *c_ssl, int family, long count, if (BIO_do_accept(acpt) <= 0) goto err; - snprintf(addr_str, sizeof(addr_str), ":%s", BIO_get_accept_port(acpt)); + BIO_snprintf(addr_str, sizeof(addr_str), ":%s", BIO_get_accept_port(acpt)); client = BIO_new_connect(addr_str); BIO_set_conn_ip_family(client, family);