From: Shane Lontis Date: Wed, 29 Apr 2020 06:19:16 +0000 (+1000) Subject: Fix snprintf missing for windows build X-Git-Tag: openssl-3.0.0-alpha2~136 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bb4f39114caabbc11caf7840db7bfcd2bf2ff430;p=oweals%2Fopenssl.git Fix snprintf missing for windows build Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/11675) --- diff --git a/crypto/x509/v3_alt.c b/crypto/x509/v3_alt.c index 52e936a3af..98ff0bca94 100644 --- a/crypto/x509/v3_alt.c +++ b/crypto/x509/v3_alt.c @@ -11,6 +11,7 @@ #include "internal/cryptlib.h" #include #include +#include #include "ext_dat.h" DEFINE_STACK_OF(CONF_VALUE) @@ -126,7 +127,8 @@ STACK_OF(CONF_VALUE) *i2v_GENERAL_NAME(X509V3_EXT_METHOD *method, break; default: if (OBJ_obj2txt(oline, sizeof(oline), gen->d.otherName->type_id, 0) > 0) - snprintf(othername, sizeof(othername), "othername: %s:", oline); + BIO_snprintf(othername, sizeof(othername), "othername: %s:", + oline); else strncpy(othername, "othername:", sizeof(othername));