Replace snprintf with BIO_snprintf

Updated snprintf to BIO_snprintf for consistency with previous changes. #24008

CLA: trivial

Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26749)

(cherry picked from commit aa6b7ac875)
This commit is contained in:
Kim, Hyuk 2025-02-14 10:48:31 +09:00 committed by Tomas Mraz
parent 7e3308062f
commit b2c88ffda2

View file

@ -222,7 +222,7 @@ BIO *http_server_init_bio(const char *prog, const char *port)
int asock;
char name[40];
snprintf(name, sizeof(name), "[::]:%s", port); /* port may be "0" */
BIO_snprintf(name, sizeof(name), "[::]:%s", port); /* port may be "0" */
bufbio = BIO_new(BIO_f_buffer());
if (bufbio == NULL)
goto err;