projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* elf64-ppc.c (ppc_add_stub): Replace strcpy/strncpy with memcpy.
[deliverable/binutils-gdb.git]
/
bfd
/
section.c
diff --git
a/bfd/section.c
b/bfd/section.c
index 8bb85c890f319a18f49ef1ebe69bc87df9f3deeb..f3937896e6b553f1a09e749675ad1d3b92bbe726 100644
(file)
--- a/
bfd/section.c
+++ b/
bfd/section.c
@@
-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.032746 seconds
and
4
git commands to generate.