From df2b27f58555c0175151fbcb2ee7a84b5c907648 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 15 Aug 2018 15:59:53 +0000 Subject: [PATCH] Fix buffer overflow when writing ipaddress info that became too long to Nextion display (i.e. when using Predictable Network Interface Names in linux) --- Nextion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nextion.cpp b/Nextion.cpp index a22df03..06659cc 100644 --- a/Nextion.cpp +++ b/Nextion.cpp @@ -99,7 +99,7 @@ void CNextion::setIdleInt() sendCommand("page MMDVM"); sendCommandAction(1U); - char command[30U]; + char command[100U]; ::sprintf(command, "dim=%u", m_idleBrightness); sendCommand(command);