summaryrefslogtreecommitdiff
path: root/cgaas.c
diff options
context:
space:
mode:
authorJohn van Groningen2010-07-28 11:12:29 +0000
committerJohn van Groningen2010-07-28 11:12:29 +0000
commitb1c7fe3b3f65511de37e47f02f1fee572e0f4c4b (patch)
treee29ccea974d119d4450d354d2edee1ba8da39c8b /cgaas.c
parentadd pushZ, pushZR and jmp_not_eqZ (diff)
use memmove instead of memcpy
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;