diff options
Diffstat (limited to 'crypto/http')
-rw-r--r-- | crypto/http/http_lib.c | 3 |
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; |