提交 6339ece1 编写于 作者: R Richard Levitte

Use BIO_snprintf() rather than snprintf()

Some platforms do not have the latter.
Reviewed-by: NMatt Caswell <matt@openssl.org>
上级 b7d53d41
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册