1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

pgmspace: expand varargs correctly in printf_P (#2819)

This commit is contained in:
Ivan Grokhotkov 2017-10-13 02:15:32 +08:00
parent 71b963699d
commit 7a93478a99

View File

@ -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;