mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-22 16:25:45 +08:00
Fix buffer overflow when writing ipaddress info that became too long to Nextion display
(i.e. when using Predictable Network Interface Names in linux)
This commit is contained in:
@@ -99,7 +99,7 @@ void CNextion::setIdleInt()
|
|||||||
sendCommand("page MMDVM");
|
sendCommand("page MMDVM");
|
||||||
sendCommandAction(1U);
|
sendCommandAction(1U);
|
||||||
|
|
||||||
char command[30U];
|
char command[100U];
|
||||||
::sprintf(command, "dim=%u", m_idleBrightness);
|
::sprintf(command, "dim=%u", m_idleBrightness);
|
||||||
sendCommand(command);
|
sendCommand(command);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user