daily update
[deliverable/binutils-gdb.git] / gas / listing.c
index 91b5253f9af01e33f4566843a87783d5b21b6423..7510d858959772411036af4a60e9a5f5a237f936 100644 (file)
@@ -1,6 +1,6 @@
 /* listing.c - mainting assembly listings
    Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-   2001
+   2001, 2002
    Free Software Foundation, Inc.
 
 This file is part of GAS, the GNU Assembler.
@@ -92,7 +92,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 */
 
 #include "as.h"
-#include <obstack.h>
+#include "obstack.h"
 #include "safe-ctype.h"
 #include "input-file.h"
 #include "subsegs.h"
@@ -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;
This page took 0.024201 seconds and 4 git commands to generate.