From b2c88ffda29a653bb14222dab0eaeb64a96d2440 Mon Sep 17 00:00:00 2001 From: "Kim, Hyuk" Date: Fri, 14 Feb 2025 10:48:31 +0900 Subject: [PATCH] Replace snprintf with BIO_snprintf Updated snprintf to BIO_snprintf for consistency with previous changes. #24008 CLA: trivial Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/26749) (cherry picked from commit aa6b7ac875a79ef2ef5376dfe79ce8402b702724) --- apps/lib/http_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/lib/http_server.c b/apps/lib/http_server.c index 33ae886d4a1..516581246a9 100644 --- a/apps/lib/http_server.c +++ b/apps/lib/http_server.c @@ -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; -- 2.47.2