Debugger: Fix off-by-one breaking StartNoAckMode

This commit is contained in:
leo60228 2023-10-07 22:55:38 -04:00 committed by Vicki Pfau
parent ef7edba159
commit 6e2c3885ee
1 changed files with 1 additions and 1 deletions

View File

@ -554,7 +554,7 @@ static void _processQReadCommand(struct GDBStub* stub, const char* message) {
static void _processQWriteCommand(struct GDBStub* stub, const char* message) {
stub->outgoing[0] = '\0';
if (!strncmp("StartNoAckMode#", message, 16)) {
if (!strncmp("StartNoAckMode#", message, 15)) {
stub->lineAck = GDB_ACK_OFF;
strncpy(stub->outgoing, "OK", GDB_STUB_MAX_LINE - 4);
}