1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-08-14 08:03:09 +03:00

use snprintf in print_blob (#40)

This commit is contained in:
ADiea
2017-03-13 09:39:00 +02:00
committed by Ivan Grokhotkov
parent 33833fb3c6
commit 47efb7adf4

View File

@@ -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++)