summaryrefslogtreecommitdiffstats
path: root/crypto/http
diff options
context:
space:
mode:
authorShane Lontis <shane.lontis@oracle.com>2021-03-18 15:41:11 +1000
committerShane Lontis <shane.lontis@oracle.com>2021-03-19 17:08:33 +1000
commitebdb5cccde44d3d1a17b4284b2b6e0ed39a71faf (patch)
tree2d4e2dc8c3470bd32387a849501010d9b26c49f2 /crypto/http
parent2154a7a754f7347892ef060d5ab4072b8a86d440 (diff)
Fix windows build compiler issue.
Another case of snprintf() being used. Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14600)
Diffstat (limited to 'crypto/http')
-rw-r--r--crypto/http/http_lib.c3
1 files changed, 2 insertions, 1 deletions
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 <openssl/http.h>
#include <openssl/httperr.h>
+#include <openssl/bio.h> /* for BIO_snprintf() */
#include <openssl/err.h>
#include <string.h>
#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;