diff options
author | Alan Modra <amodra@bigpond.net.au> | 2002-06-26 01:18:42 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2002-06-26 01:18:42 +0000 |
commit | af30b8f4b3867e26afb9d470877abfa8338c5781 (patch) | |
tree | 64505c541ee566f4465c8ce31a61723fcb98b87f /gas/listing.c | |
parent | 4c22a35fa36f0f6fa962a455e0bedbf42a62cbd9 (diff) | |
download | binutils-redhat-af30b8f4b3867e26afb9d470877abfa8338c5781.tar.gz |
* ecoff.c: (get_tag): Replace strcpy with xstrdup.
(ecoff_directive_def): Likewise.
(ecoff_directive_tag): Likewise.
* listing.c (file_info): Likewise.
* hash.c (what): Likewise.
Diffstat (limited to 'gas/listing.c')
-rw-r--r-- | gas/listing.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gas/listing.c b/gas/listing.c index 95f4129958..7510d85895 100644 --- a/gas/listing.c +++ b/gas/listing.c @@ -269,8 +269,7 @@ file_info (file_name) p = (file_info_type *) xmalloc (sizeof (file_info_type)); p->next = file_info_head; file_info_head = p; - p->filename = xmalloc ((unsigned long) strlen (file_name) + 1); - strcpy (p->filename, file_name); + p->filename = xstrdup (file_name); p->pos = 0; p->linenum = 0; p->at_end = 0; |