From ebdb5cccde44d3d1a17b4284b2b6e0ed39a71faf Mon Sep 17 00:00:00 2001 From: Shane Lontis Date: Thu, 18 Mar 2021 15:41:11 +1000 Subject: Fix windows build compiler issue. Another case of snprintf() being used. Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/14600) --- crypto/http/http_lib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crypto/http') diff --git a/crypto/http/http_lib.c b/crypto/http/http_lib.c index ebb2af9b2e..3bf642a4f4 100644 --- a/crypto/http/http_lib.c +++ b/crypto/http/http_lib.c @@ -9,6 +9,7 @@ #include #include +#include /* for BIO_snprintf() */ #include #include #include "internal/cryptlib.h" /* for ossl_assert() */ @@ -164,7 +165,7 @@ int OSSL_parse_url(const char *url, char **pscheme, char **puser, char **phost, if ((*ppath = OPENSSL_malloc(buflen)) == NULL) goto err; - snprintf(*ppath, buflen, "/%s", path); + BIO_snprintf(*ppath, buflen, "/%s", path); } return 1; -- cgit v1.2.3