Skip to content

Commit

Permalink
Fix buffer overflow when writing ipaddress info that became too long …
Browse files Browse the repository at this point in the history
…to Nextion display

(i.e. when using Predictable Network Interface Names in linux)
  • Loading branch information
on7lds committed Aug 15, 2018
1 parent e8348d9 commit df2b27f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Nextion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit df2b27f

Please sign in to comment.