Skip to content

Commit 7a93478

Browse files
committed
pgmspace: expand varargs correctly in printf_P (#2819)
1 parent 71b9636 commit 7a93478

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/pgmspace.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ int printf_P(PGM_P formatP, ...) {
234234
char* format = new char[fmtLen + 1];
235235
strcpy_P(format, formatP);
236236

237-
ret = printf(format, arglist);
237+
ret = vprintf(format, arglist);
238238

239239
delete[] format;
240240

0 commit comments

Comments
 (0)