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 da8f4f28f3
commit 1d4bf372b8
1 changed files with 1 additions and 1 deletions

View File

@ -548,7 +548,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);
}