diff options
author | Akash Trehan <akash.trehan123@gmail.com> | 2016-09-02 13:48:59 +0530 |
---|---|---|
committer | Manish Goregaokar <manish@mozilla.com> | 2016-09-03 16:25:07 +0530 |
commit | c1da6748f560ec19173d5d7766e0d497e8a0f1e4 (patch) | |
tree | 17990112b549568f2d519b2d731012751b37d3b0 /gdb/gdbserver/remote-utils.c | |
parent | a367a3acb383e7766602db840fad31ed4a1da655 (diff) | |
download | binutils-c1da6748f560ec19173d5d7766e0d497e8a0f1e4.zip binutils-c1da6748f560ec19173d5d7766e0d497e8a0f1e4.tar.gz binutils-c1da6748f560ec19173d5d7766e0d497e8a0f1e4.tar.bz2 |
Removed redundant line remote-utils.c
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.
Diffstat (limited to 'gdb/gdbserver/remote-utils.c')
-rw-r--r-- | gdb/gdbserver/remote-utils.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c index 768d2e9..1d51010 100644 --- a/gdb/gdbserver/remote-utils.c +++ b/gdb/gdbserver/remote-utils.c @@ -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) |