Module Name:    src
Committed By:   riastradh
Date:           Wed Mar 29 10:25:11 UTC 2023

Modified Files:
        src/crypto/external/bsd/openssl/dist/crypto/bio: bss_log.c

Log Message:
openssl: Omit needless sprintf->snprintf under OPENSSL_SYS_WIN32.

Much as I'm happy to eliminate sprintf, there's very little value to
maintaining a local change under an #ifdef that will never, ever be
taken on NetBSD.

Verified libcrypto.so does not sprout any references to sprintf as a
result.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 \
    src/crypto/external/bsd/openssl/dist/crypto/bio/bss_log.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/crypto/external/bsd/openssl/dist/crypto/bio/bss_log.c
diff -u src/crypto/external/bsd/openssl/dist/crypto/bio/bss_log.c:1.12 src/crypto/external/bsd/openssl/dist/crypto/bio/bss_log.c:1.13
--- src/crypto/external/bsd/openssl/dist/crypto/bio/bss_log.c:1.12	Sun Mar 22 20:07:05 2020
+++ src/crypto/external/bsd/openssl/dist/crypto/bio/bss_log.c	Wed Mar 29 10:25:11 2023
@@ -280,7 +280,7 @@ static void xsyslog(BIO *bp, int priorit
         break;
     }
 
-    snprintf(pidbuf, sizeof(pidbuf), "[%u] ", GetCurrentProcessId());
+    sprintf(pidbuf, "[%u] ", GetCurrentProcessId());
     lpszStrings[0] = pidbuf;
     lpszStrings[1] = string;
 

Reply via email to