提交 007a93ec 编写于 作者: M Mike Dunston 提交者: Me No Dev

Update Print.cpp (#3060)

#2891
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册