Skip to content

Commit 007a93e

Browse files
atanisoftme-no-dev
authored andcommitted
Update Print.cpp (#3060)
#2891
1 parent a5f3fc6 commit 007a93e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/Print.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ size_t Print::printf(const char *format, ...)
5252
va_list copy;
5353
va_start(arg, format);
5454
va_copy(copy, arg);
55-
size_t len = vsnprintf(NULL, 0, format, arg);
55+
size_t len = vsnprintf(NULL, 0, format, copy);
5656
va_end(copy);
5757
if(len >= sizeof(loc_buf)){
5858
temp = new char[len+1];

0 commit comments

Comments
 (0)