Commit ece45f05e8 for openssl.org
commit ece45f05e8676d4faa06a88e4da88c00a0978944
Author: Milan Broz <gmazyland@gmail.com>
Date: Tue Apr 28 23:06:05 2026 +0200
Replace one missing snprint with BIO_snprintf
Older compilers like MSVC 2013 do not support it.
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
MergeDate: Thu Apr 30 06:49:22 2026
(Merged from https://github.com/openssl/openssl/pull/31019)
diff --git a/test/threadstest.c b/test/threadstest.c
index f1c78373fb..8dcb3f1afe 100644
--- a/test/threadstest.c
+++ b/test/threadstest.c
@@ -1372,7 +1372,7 @@ static void test_obj_create_worker(void)
for (i = 0; i < 4; i++) {
now = time(NULL);
- snprintf(name, sizeof(name), "Time in Seconds = %ld", (long)now);
+ BIO_snprintf(name, sizeof(name), "Time in Seconds = %ld", (long)now);
while (now == time(NULL))
/* no-op */;
nid = OBJ_create(NULL, NULL, name);