* elf64-ppc.c (ppc_add_stub): Replace strcpy/strncpy with memcpy.
[deliverable/binutils-gdb.git] / bfd / section.c
index 8bb85c890f319a18f49ef1ebe69bc87df9f3deeb..f3937896e6b553f1a09e749675ad1d3b92bbe726 100644 (file)
@@ -798,7 +798,7 @@ bfd_get_unique_section_name (abfd, templat, count)
   sname = bfd_malloc ((bfd_size_type) len + 8);
   if (sname == NULL)
     return NULL;
-  strcpy (sname, templat);
+  memcpy (sname, templat, len);
   num = 1;
   if (count != NULL)
     num = *count;
This page took 0.02325 seconds and 4 git commands to generate.