summaryrefslogtreecommitdiff
path: root/cgaas.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgaas.c')
-rw-r--r--cgaas.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgaas.c b/cgaas.c
index 6065f55..8678cf9 100644
--- a/cgaas.c
+++ b/cgaas.c
@@ -5887,7 +5887,7 @@ static void relocate_short_branches_and_move_code (void)
if (BUFFER_SIZE-destination_buffer_offset < n)
n = BUFFER_SIZE-destination_buffer_offset;
- memcpy (&destination_object_buffer->data[destination_buffer_offset],&source_object_buffer->data[source_buffer_offset],n);
+ memmove (&destination_object_buffer->data[destination_buffer_offset],&source_object_buffer->data[source_buffer_offset],n);
destination_buffer_offset+=n;
source_buffer_offset+=n;
source_offset+=n;
@@ -6109,7 +6109,7 @@ static void relocate_short_branches_and_move_code (void)
if (BUFFER_SIZE-destination_buffer_offset < n)
n = BUFFER_SIZE-destination_buffer_offset;
- memcpy (&destination_object_buffer->data[destination_buffer_offset],&source_object_buffer->data[source_buffer_offset],n);
+ memmove (&destination_object_buffer->data[destination_buffer_offset],&source_object_buffer->data[source_buffer_offset],n);
destination_buffer_offset+=n;
source_buffer_offset+=n;
source_offset+=n;