Commit 4f9a90fa authored by atanisoft's avatar atanisoft Committed by Me No Dev

fix #2232 and #2033 (#2233)

parent 310e78e6
...@@ -456,7 +456,7 @@ int log_printf(const char *format, ...) ...@@ -456,7 +456,7 @@ int log_printf(const char *format, ...)
ets_printf("%s", temp); ets_printf("%s", temp);
#endif #endif
va_end(arg); va_end(arg);
if(len > 64){ if(len > sizeof(loc_buf)){
free(temp); free(temp);
} }
return len; return len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment