Fix windows build compiler issue.
authorShane Lontis <shane.lontis@oracle.com>
Thu, 18 Mar 2021 05:41:11 +0000 (15:41 +1000)
committerShane Lontis <shane.lontis@oracle.com>
Fri, 19 Mar 2021 07:08:33 +0000 (17:08 +1000)
Another case of snprintf() being used.

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14600)

crypto/http/http_lib.c

index ebb2af9b2efcd3100ab944fe27cced914b904106..3bf642a4f410165ba57974a0edb5a9b7709172de 100644 (file)
@@ -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;