diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-11-07 05:57:23 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-11-07 05:57:23 +0000 |
commit | d80105584abc1869886419c62cd63512506af126 (patch) | |
tree | bf6cb89c3be20808c4f8554aff434b592718366a | |
parent | e49a4ba7592d90945337399212f3aeeb9b5a20ec (diff) | |
download | binutils-redhat-d80105584abc1869886419c62cd63512506af126.tar.gz |
Replace memcpy with memmove
* section.c (bfd_get_section_contents): Replace memcpy
with memmove.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/section.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a2fb2967df..90f5e781b3 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2012-11-07 H.J. Lu <hongjiu.lu@intel.com> + + * section.c (bfd_get_section_contents): Replace memcpy + with memmove. + 2012-11-07 Hans-Peter Nilsson <hp@axis.com> PR binutils/14481 diff --git a/bfd/section.c b/bfd/section.c index ab5635b4b5..6fd7d8ec02 100644 --- a/bfd/section.c +++ b/bfd/section.c @@ -1546,7 +1546,7 @@ bfd_get_section_contents (bfd *abfd, return FALSE; } - memcpy (location, section->contents + offset, (size_t) count); + memmove (location, section->contents + offset, (size_t) count); return TRUE; } |