aboutsummaryrefslogtreecommitdiff
path: root/bfd/section.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-11-07 05:57:24 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-11-07 05:57:24 +0000
commitddda4adc286e6a6e37702141f891a04552f18006 (patch)
treec3a5715abd6cf84a27f4fafc098bd23cf661a101 /bfd/section.c
parent75344f2a89bb107d0da2a612bf18519239cf71bd (diff)
downloadgdb-ddda4adc286e6a6e37702141f891a04552f18006.zip
gdb-ddda4adc286e6a6e37702141f891a04552f18006.tar.gz
gdb-ddda4adc286e6a6e37702141f891a04552f18006.tar.bz2
Replace memcpy with memmove
* section.c (bfd_get_section_contents): Replace memcpy with memmove.
Diffstat (limited to 'bfd/section.c')
-rw-r--r--bfd/section.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/section.c b/bfd/section.c
index ab5635b..6fd7d8e 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;
}