Skip to content

Commit

Permalink
http_test.c: Replace snprintf by BIO_snprintf
Browse files Browse the repository at this point in the history
Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Viktor Dukhovni <[email protected]>
Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl/openssl#26925)
  • Loading branch information
jfclere authored and t8m committed Mar 3, 2025
1 parent 2411f9b commit 7e431da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/http_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 7e431da

Please sign in to comment.