From 4f9a90fa0e7dff6ad26a89fe3daf3448ae3e4ff1 Mon Sep 17 00:00:00 2001 From: atanisoft Date: Sun, 23 Dec 2018 09:06:43 -0800 Subject: [PATCH] fix #2232 and #2033 (#2233) --- 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 56fe510a..a76c2409 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;