summaryrefslogtreecommitdiff
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
parentadd pushZ, pushZR and jmp_not_eqZ (diff)
use memmove instead of memcpy
-rw-r--r--cgaas.c4
-rw-r--r--cgias.c4
2 files changed, 4 insertions, 4 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;
diff --git a/cgias.c b/cgias.c
index b3a57aa..286ccf0 100644
--- a/cgias.c
+++ b/cgias.c
@@ -6540,7 +6540,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;
@@ -6742,7 +6742,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;