Buffer overflow and missing return code added
This commit is contained in:
@@ -467,6 +467,7 @@ bool parsePosQuery(const String& line) {
|
||||
CMD_PORT.print(' ');
|
||||
CMD_PORT.println(gauges[i].sweepEnabled ? 1 : 0);
|
||||
}
|
||||
sendReply("OK");
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -508,6 +509,7 @@ void readCommands() {
|
||||
rxLine += c;
|
||||
if (rxLine.length() > 120) {
|
||||
rxLine = "";
|
||||
sendReply("ERR TOO_LONG");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user