From 007a93ec7e7aff538d2002d3bda13cd01c2e60c7 Mon Sep 17 00:00:00 2001 From: Mike Dunston Date: Tue, 20 Aug 2019 06:36:04 -0700 Subject: [PATCH] Update Print.cpp (#3060) #2891 --- cores/esp32/Print.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp32/Print.cpp b/cores/esp32/Print.cpp index 8c295347f..65fa1e9da 100644 --- a/cores/esp32/Print.cpp +++ b/cores/esp32/Print.cpp @@ -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]; -- GitLab