summaryrefslogtreecommitdiffstats
path: root/src/binutils-1-gas-memmove.patch
blob: 88e6f96b4ca8cabee111fc4b714ddb2582c4bfd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
This file is part of mingw-cross-env.
See doc/index.html for further information.

This patch has been taken from:
http://sourceware.org/bugzilla/show_bug.cgi?id=11456

diff -u -r1.22 -r1.23
--- a/gas/input-scrub.c	2009/09/11 15:27:33	1.22
+++ b/gas/input-scrub.c	2010/03/30 23:20:25	1.23
@@ -343,8 +343,8 @@
 
   if (partial_size)
     {
-      memcpy (buffer_start + BEFORE_SIZE, partial_where,
-	      (unsigned int) partial_size);
+      memmove (buffer_start + BEFORE_SIZE, partial_where,
+	       (unsigned int) partial_size);
       memcpy (buffer_start + BEFORE_SIZE, save_source, AFTER_SIZE);
     }
   limit = input_file_give_next_buffer (buffer_start