Skip to content
Snippets Groups Projects
Commit 65a73074 authored by Jan Grewe's avatar Jan Grewe
Browse files

fix buffer overflow

parent 27abf8d7
Branches
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ void showEndScreen(int ticks)
void fadeOutGame(int brightness)
{
char msg[37];
char msg[38];
sprintf(msg, "Setting game layer brightness to: %d", brightness);
sendEvent("display", msg);
brightness = lightPowerMap8bit[brightness];
......
......@@ -58,7 +58,7 @@ void setupOTA()
if(error == OTA_AUTH_ERROR) events.send("Auth Failed", "ota");
else if(error == OTA_BEGIN_ERROR) events.send("Begin Failed", "ota");
else if(error == OTA_CONNECT_ERROR) events.send("Connect Failed", "ota");
else if(error == OTA_RECEIVE_ERROR) events.send("Recieve Failed", "ota");
else if(error == OTA_RECEIVE_ERROR) events.send("Receive Failed", "ota");
else if(error == OTA_END_ERROR) events.send("End Failed", "ota"); });
ArduinoOTA.setHostname(HOSTNAME);
ArduinoOTA.begin();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment