diff --git a/src/debugger/gdb-stub.c b/src/debugger/gdb-stub.c index 1204f908a..0e159478c 100644 --- a/src/debugger/gdb-stub.c +++ b/src/debugger/gdb-stub.c @@ -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); }