From 8f6076266f9faf71493b4e58b4eb43ea287bbc3e Mon Sep 17 00:00:00 2001 From: Hieromon Ikasamo Date: Thu, 28 Jul 2022 20:22:14 +0900 Subject: [PATCH] Fix sprintf buffer overflow --- examples/Simple/Simple.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Simple/Simple.ino b/examples/Simple/Simple.ino index 8e4929af..d995ad19 100644 --- a/examples/Simple/Simple.ino +++ b/examples/Simple/Simple.ino @@ -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);