diff options
Diffstat (limited to 'gdb/target-memory.c')
-rw-r--r-- | gdb/target-memory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/target-memory.c b/gdb/target-memory.c index 78f9d9c..b013367 100644 --- a/gdb/target-memory.c +++ b/gdb/target-memory.c @@ -84,10 +84,10 @@ claim_memory (VEC(memory_write_request_s) *blocks, { struct memory_write_request *n = VEC_safe_push (memory_write_request_s, *result, NULL); - memset (n, 0, sizeof (struct memory_write_request)); + *n = *r; n->begin = claimed_begin; n->end = claimed_end; - n->data = r->data + (claimed_begin - r->begin); + n->data += claimed_begin - r->begin; } } } |