Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix an incorrect sizeof in a memset in GDBStub.cpp
  • Loading branch information
lioncash committed Sep 4, 2013
1 parent 10eb9f0 commit 30da36d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Core/Src/PowerPC/GDBStub.cpp
Expand Up @@ -197,7 +197,7 @@ static void gdb_bp_remove(u32 type, u32 addr, u32 len)
if (p != NULL) {
DEBUG_LOG(GDB_STUB, "gdb: removed a breakpoint: %08x bytes at %08x\n", len, addr);
p->active = 0;
memset(p, 0, sizeof p);
memset(p, 0, sizeof(gdb_bp_t));
}
} while (p != NULL);
}
Expand Down

0 comments on commit 30da36d

Please sign in to comment.