[PR,gdb/19495] Removed redundant line remote-utils.c
Commit Message
Reformatted patch below. Please ensure that the diff is one which
can be imported via `git apply`
2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
gdb/gdbserver/ChangeLog:
PR gdb/19495
* remote-utils.c (relocate_instruction): Remove redundant strcpy()
call writing data to own_buf.
---
gdb/gdbserver/remote-utils.c | 1 -
1 file changed, 1 deletion(-)
Comments
OK, please push.
Thanks,
Pedro Alves
@@ -1579,7 +1579,6 @@ relocate_instruction (CORE_ADDR *to, CORE_ADDR oldloc)
ULONGEST written = 0;
/* Send the request. */
- strcpy (own_buf, "qRelocInsn:");
sprintf (own_buf, "qRelocInsn:%s;%s", paddress (oldloc),
paddress (*to));
if (putpkt (own_buf) < 0)