This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] basename buffer gets spammed in `ld'


On Thu, Jul 12, 2001 at 11:43:19AM -0700, David O'Brien wrote:
> @@ -967,7 +964,7 @@
>        /* Rather than duplicating the logic above.  Just use the
>  	 filename we recorded earlier.  */
>  
> -      filename = xstrdup (basename (entry->filename));
> +      filename = lbasename (entry->filename);
>        bfd_elf_set_dt_needed_name (entry->the_bfd, filename);
>      }
>  

Are you sure it is 100% safe to remove xstrdup?


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]