Replace memcpy with memmove
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 7 Nov 2012 05:57:24 +0000 (05:57 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 7 Nov 2012 05:57:24 +0000 (05:57 +0000)
* section.c (bfd_get_section_contents): Replace memcpy
with memmove.

bfd/ChangeLog
bfd/section.c

index a2fb296..90f5e78 100644 (file)
@@ -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
index ab5635b..6fd7d8e 100644 (file)
@@ -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;
     }