]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Replace snprintf with BIO_snprintf
authorKim, Hyuk <hyuk.kim@ahnlab.com>
Fri, 14 Feb 2025 01:48:31 +0000 (10:48 +0900)
committerTomas Mraz <tomas@openssl.org>
Tue, 18 Feb 2025 15:24:41 +0000 (16:24 +0100)
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 aa6b7ac875a79ef2ef5376dfe79ce8402b702724)

apps/lib/http_server.c

index 33ae886d4a1cbed12f471ed0cc27b339a7bffc57..516581246a94ed85d626e9865a0a61d3e8be8494 100644 (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;