d1152b
--- binutils.orig/ld/pe-dll.c	2021-05-07 10:47:12.145769068 +0100
d1152b
+++ binutils-2.35.2/ld/pe-dll.c	2021-05-07 11:01:43.000450119 +0100
d1152b
@@ -3032,7 +3032,7 @@ pe_find_cdecl_alias_match (struct bfd_li
d1152b
 	  if (pe_details->underscored)
d1152b
 	    lname[0] = '_';
d1152b
 	  else
d1152b
-	    strcpy (lname, lname + 1);
d1152b
+	    memmove (lname, lname + 1, strlen (lname));
d1152b
 	  key.key = lname;
d1152b
 	  kv = bsearch (&key, udef_table, undef_count,
d1152b
 			sizeof (struct key_value), undef_sort_cmp);