Commit 007a93ec authored by Mike Dunston's avatar Mike Dunston Committed by Me No Dev

Update Print.cpp (#3060)

#2891
parent a5f3fc6f
......@@ -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];
......
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