From b1c7fe3b3f65511de37e47f02f1fee572e0f4c4b Mon Sep 17 00:00:00 2001 From: John van Groningen Date: Wed, 28 Jul 2010 11:12:29 +0000 Subject: use memmove instead of memcpy --- cgaas.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cgaas.c') 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; -- cgit v1.2.3