mirror of https://github.com/mgba-emu/mgba.git
Debugger: Fix off-by-one breaking StartNoAckMode
This commit is contained in:
parent
ef7edba159
commit
6e2c3885ee
|
@ -554,7 +554,7 @@ static void _processQReadCommand(struct GDBStub* stub, const char* message) {
|
||||||
|
|
||||||
static void _processQWriteCommand(struct GDBStub* stub, const char* message) {
|
static void _processQWriteCommand(struct GDBStub* stub, const char* message) {
|
||||||
stub->outgoing[0] = '\0';
|
stub->outgoing[0] = '\0';
|
||||||
if (!strncmp("StartNoAckMode#", message, 16)) {
|
if (!strncmp("StartNoAckMode#", message, 15)) {
|
||||||
stub->lineAck = GDB_ACK_OFF;
|
stub->lineAck = GDB_ACK_OFF;
|
||||||
strncpy(stub->outgoing, "OK", GDB_STUB_MAX_LINE - 4);
|
strncpy(stub->outgoing, "OK", GDB_STUB_MAX_LINE - 4);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue