Skip to content

Commit

Permalink
Update Print.cpp (#3060)
Browse files Browse the repository at this point in the history
  • Loading branch information
atanisoft authored and me-no-dev committed Aug 20, 2019
1 parent a5f3fc6 commit 007a93e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cores/esp32/Print.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ size_t Print::printf(const char *format, ...)
va_list copy;
va_start(arg, format);
va_copy(copy, arg);
size_t len = vsnprintf(NULL, 0, format, arg);
size_t len = vsnprintf(NULL, 0, format, copy);
va_end(copy);
if(len >= sizeof(loc_buf)){
temp = new char[len+1];
Expand Down

0 comments on commit 007a93e

Please sign in to comment.