From: Shane Lontis Date: Thu, 18 Mar 2021 05:41:11 +0000 (+1000) Subject: Fix windows build compiler issue. X-Git-Tag: openssl-3.0.0-alpha14~212 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ebdb5cccde44d3d1a17b4284b2b6e0ed39a71faf;p=thirdparty%2Fopenssl.git Fix windows build compiler issue. Another case of snprintf() being used. Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/14600) --- diff --git a/crypto/http/http_lib.c b/crypto/http/http_lib.c index ebb2af9b2ef..3bf642a4f41 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;