From 7a93478a99a23004e44758603bc8a4953f230205 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Fri, 13 Oct 2017 02:15:32 +0800 Subject: [PATCH] pgmspace: expand varargs correctly in printf_P (#2819) --- cores/esp8266/pgmspace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp8266/pgmspace.cpp b/cores/esp8266/pgmspace.cpp index 75de541d06..ed81039f46 100644 --- a/cores/esp8266/pgmspace.cpp +++ b/cores/esp8266/pgmspace.cpp @@ -234,7 +234,7 @@ int printf_P(PGM_P formatP, ...) { char* format = new char[fmtLen + 1]; strcpy_P(format, formatP); - ret = printf(format, arglist); + ret = vprintf(format, arglist); delete[] format;