From 7e431da4d869dce76d0ad88215a82281f19562af Mon Sep 17 00:00:00 2001 From: Jean-Frederic Clere Date: Thu, 27 Feb 2025 17:35:05 +0100 Subject: [PATCH] http_test.c: Replace snprintf by BIO_snprintf Reviewed-by: Matt Caswell Reviewed-by: Viktor Dukhovni Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/26925) --- test/http_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/http_test.c b/test/http_test.c index 67fed9a05c..7a6edad9fe 100644 --- a/test/http_test.c +++ b/test/http_test.c @@ -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());