]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
http_test.c: Replace snprintf by BIO_snprintf
authorJean-Frederic Clere <jfclere@gmail.com>
Thu, 27 Feb 2025 16:35:05 +0000 (17:35 +0100)
committerTomas Mraz <tomas@openssl.org>
Mon, 3 Mar 2025 08:18:13 +0000 (09:18 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/26925)

test/http_test.c

index 67fed9a05ca1a84c372dcb5829bb4f21595ee7de..7a6edad9fec392c81d361176b398db1b5e57aa61 100644 (file)
@@ -159,8 +159,8 @@ static int test_http_method(int do_get, int do_txt, int suggested_status)
     int res = 0;
     int real_server = do_txt && 0; /* remove "&& 0" for using real server */
 
-    snprintf(path, sizeof(path), "/%d%s", suggested_status,
-             do_get > 1 ? "/will-be-redirected" : RPATH);
+    BIO_snprintf(path, sizeof(path), "/%d%s", suggested_status,
+                 do_get > 1 ? "/will-be-redirected" : RPATH);
     if (do_txt) {
         content_type = "text/plain";
         req = BIO_new(BIO_s_mem());