Fix windows build compiler issue.
Another case of snprintf() being used.
#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;
