From: Kim, Hyuk Date: Fri, 14 Feb 2025 01:48:31 +0000 (+0900) Subject: Replace snprintf with BIO_snprintf X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2c88ffda29a653bb14222dab0eaeb64a96d2440;p=thirdparty%2Fopenssl.git 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) --- 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;