Skip to content

Commit 47efb7a

Browse files
ADieaigrr
authored andcommitted
use snprintf in print_blob (#40)
1 parent 33833fb commit 47efb7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto/crypto_misc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ EXP_FUNC void STDCALL print_blob(const char *format,
290290
va_list(ap);
291291

292292
va_start(ap, size);
293-
sprintf(tmp, "%s\n", format);
293+
snprintf(tmp, sizeof(tmp), "SSL: %s\n", format);
294294
vprintf(tmp, ap);
295295
print_hex_init(size);
296296
for (i = 0; i < size; i++)

0 commit comments

Comments
 (0)