aboutsummaryrefslogtreecommitdiff
path: root/bfd/srec.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/srec.c')
-rw-r--r--bfd/srec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/srec.c b/bfd/srec.c
index 5e020a2..6c6f875 100644
--- a/bfd/srec.c
+++ b/bfd/srec.c
@@ -586,7 +586,7 @@ DEFUN (srec_set_section_contents, (abfd, section, location, offset, bytes_to_do)
bfd_set_error (bfd_error_no_memory);
return false;
}
- memcpy (data, location, bytes_to_do);
+ memcpy ((PTR) data, location, bytes_to_do);
if ((section->lma + offset + bytes_to_do) <= 0xffff)
{