Fix bug in windbg_read_reg() (#16086)
This commit is contained in:
parent
5ad486923e
commit
3a8388bab6
|
@ -1003,7 +1003,7 @@ int windbg_read_reg(WindCtx *ctx, uint8_t *buf, int size) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
memcpy (buf, rr->data, R_MIN (size, pkt->length - sizeof (rr)));
|
||||
memcpy (buf, rr->data, R_MIN (size, pkt->length - sizeof (*rr)));
|
||||
|
||||
free (pkt);
|
||||
|
||||
|
|
Loading…
Reference in New Issue