Skip to content

Commit

Permalink
pgmspace: expand varargs correctly in printf_P (esp8266#2819)
Browse files Browse the repository at this point in the history
  • Loading branch information
igrr committed Oct 12, 2017
1 parent 71b9636 commit 7a93478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cores/esp8266/pgmspace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7a93478

Please sign in to comment.