Skip to content

Commit 019de9c

Browse files
igrrd-a-v
authored andcommitted
pgmspace: expand varargs correctly in printf_P (esp8266#2819)
1 parent d56afe5 commit 019de9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/pgmspace.cpp

Lines changed: 1 addition & 1 deletion
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)