From ddda4adc286e6a6e37702141f891a04552f18006 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 7 Nov 2012 05:57:24 +0000 Subject: [PATCH] Replace memcpy with memmove * section.c (bfd_get_section_contents): Replace memcpy with memmove. --- bfd/ChangeLog | 5 +++++ bfd/section.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a2fb2967df7..90f5e781b34 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2012-11-07 H.J. Lu + + * section.c (bfd_get_section_contents): Replace memcpy + with memmove. + 2012-11-07 Hans-Peter Nilsson PR binutils/14481 diff --git a/bfd/section.c b/bfd/section.c index ab5635b4b5f..6fd7d8ec020 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; } -- 2.30.2