Replace memcpy with memmove
* section.c (bfd_get_section_contents): Replace memcpy with memmove.
This commit is contained in:
parent
75344f2a89
commit
ddda4adc28
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue