Replace memcpy with memmove

* section.c (bfd_get_section_contents): Replace memcpy
	with memmove.
This commit is contained in:
H.J. Lu 2012-11-07 05:57:24 +00:00
parent 75344f2a89
commit ddda4adc28
2 changed files with 6 additions and 1 deletions

View 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

View 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;
}