Switch to BIO_snprintf to avoid missing symbol problems on Windows
authorJon Spillett <jon.spillett@oracle.com>
Thu, 4 Feb 2021 05:13:18 +0000 (15:13 +1000)
committerShane Lontis <shane.lontis@oracle.com>
Fri, 5 Feb 2021 08:03:40 +0000 (18:03 +1000)
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/14063)

apps/lib/opt.c

index 99499193e4d0ea188a04032a4ec079f7f51b4dd6..8cc520daec86aaffc0885aa9cd732ff1e9f0ff74 100644 (file)
@@ -143,7 +143,7 @@ char *opt_appname(const char *arg0)
     size_t len = strlen(prog);
 
     if (arg0 != NULL)
-        snprintf(prog + len, sizeof(prog) - len - 1, " %s", arg0);
+        BIO_snprintf(prog + len, sizeof(prog) - len - 1, " %s", arg0);
     return prog;
 }