From 47efb7adf46fafe7ebdf17fb2613075753edf6ac Mon Sep 17 00:00:00 2001 From: ADiea Date: Mon, 13 Mar 2017 09:39:00 +0200 Subject: [PATCH] use snprintf in print_blob (#40) --- crypto/crypto_misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/crypto_misc.c b/crypto/crypto_misc.c index f166bb8c3..6c7e682d1 100644 --- a/crypto/crypto_misc.c +++ b/crypto/crypto_misc.c @@ -290,7 +290,7 @@ EXP_FUNC void STDCALL print_blob(const char *format, va_list(ap); va_start(ap, size); - sprintf(tmp, "%s\n", format); + snprintf(tmp, sizeof(tmp), "SSL: %s\n", format); vprintf(tmp, ap); print_hex_init(size); for (i = 0; i < size; i++)