Fix bug in windbg_read_reg() (#16086)

This commit is contained in:
Paul I 2020-03-02 08:38:17 +03:00 committed by GitHub
parent 5ad486923e
commit 3a8388bab6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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);