Skip to content

Commit

Permalink
fix #2232 and #2033 (#2233)
Browse files Browse the repository at this point in the history
  • Loading branch information
atanisoft authored and me-no-dev committed Dec 23, 2018
1 parent 310e78e commit 4f9a90f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cores/esp32/esp32-hal-uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)){

This comment has been minimized.

Copy link
@arduino12

arduino12 Jan 9, 2019

@me-no-dev Needs to be if(len >= sizeof(loc_buf)){ (note the >=).
Same as #2204 #2201.

This comment has been minimized.

Copy link
@me-no-dev

me-no-dev Jan 9, 2019

Member

thanks!

free(temp);
}
return len;
Expand Down

0 comments on commit 4f9a90f

Please sign in to comment.