Skip to content

Commit

Permalink
Fix sprintf buffer overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Hieromon committed Jul 28, 2022
1 parent 5378225 commit 8f60762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/Simple/Simple.ino
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ void rootPage() {
static const char *wd[7] = { "Sun","Mon","Tue","Wed","Thr","Fri","Sat" };
struct tm *tm;
time_t t;
char dateTime[26];
char dateTime[40];

t = time(NULL);
tm = localtime(&t);
Expand Down

0 comments on commit 8f60762

Please sign in to comment.