From 920ccb5b6c6550927a25d88a33b0af1b59871492 Mon Sep 17 00:00:00 2001 From: Mike Dunston Date: Sat, 22 Dec 2018 08:29:40 -0800 Subject: [PATCH] fix #2232 and #2033 --- cores/esp32/esp32-hal-uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp32/esp32-hal-uart.c b/cores/esp32/esp32-hal-uart.c index 56fe510a04c..a76c2409f22 100644 --- a/cores/esp32/esp32-hal-uart.c +++ b/cores/esp32/esp32-hal-uart.c @@ -456,7 +456,7 @@ int log_printf(const char *format, ...) ets_printf("%s", temp); #endif va_end(arg); - if(len > 64){ + if(len > sizeof(loc_buf)){ free(temp); } return len;