From: Jean-Frederic Clere Date: Thu, 27 Feb 2025 16:35:05 +0000 (+0100) Subject: http_test.c: Replace snprintf by BIO_snprintf X-Git-Tag: openssl-3.5.0-alpha1~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e431da4d869dce76d0ad88215a82281f19562af;p=thirdparty%2Fopenssl.git 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) --- diff --git a/test/http_test.c b/test/http_test.c index 67fed9a05ca..7a6edad9fec 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());