projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use xstrdup and friends more
[deliverable/binutils-gdb.git]
/
gas
/
config
/
obj-elf.c
diff --git
a/gas/config/obj-elf.c
b/gas/config/obj-elf.c
index 1d07d4b7d6a67e64c342fa84414dc8da5bbe9707..68290e21cedfbefc6d309d11f8239cfa1d53827d 100644
(file)
--- a/
gas/config/obj-elf.c
+++ b/
gas/config/obj-elf.c
@@
-1609,9
+1609,7
@@
obj_elf_vendor_attribute (int vendor)
if (i == 0)
goto bad;
- name = xmalloc (i + 1);
- memcpy (name, s, i);
- name[i] = '\0';
+ name = xstrndup (s, i);
#ifndef CONVERT_SYMBOLIC_ATTRIBUTE
#define CONVERT_SYMBOLIC_ATTRIBUTE(a) -1
This page took
0.036773 seconds
and
4
git commands to generate.