]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Replace one missing snprint with BIO_snprintf
authorMilan Broz <gmazyland@gmail.com>
Tue, 28 Apr 2026 21:06:05 +0000 (23:06 +0200)
committerNikola Pajkovsky <nikolap@openssl.org>
Thu, 30 Apr 2026 06:49:18 +0000 (06:49 +0000)
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)

test/threadstest.c

index f1c78373fbb615f10117b8e256a04398ef9384af..8dcb3f1afe7af954a03017511c7504a8b8dd2642 100644 (file)
@@ -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);