* win32-nat.c (dll_code_sections_add): strdup -> xstrdup.

This commit is contained in:
Christopher Faylor 2000-11-28 17:27:38 +00:00
parent fcdc20a4d3
commit 66ed1d85be
3 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Tue Nov 28 12:24:43 2000 Christopher Faylor <cgf@cygnus.com>
* win32-nat.c (dll_code_sections_add): strdup -> xstrdup.
Mon Nov 27 11:45:52 2000 Andrew Cagney <cagney@b1.cygnus.com>
* remote.c (remote_write_bytes): Add default case to switch

View File

@ -1540,7 +1540,7 @@ dll_code_sections_add (const char *dll_name, int base_addr, struct target_ops *t
char *name;
if (dll_name == NULL || target == NULL)
return 0;
name = strdup (dll_name);
name = xstrdup (dll_name);
dll_bfd = bfd_openr (name, "pei-i386");
if (dll_bfd == NULL)
return 0;

View File

@ -1540,7 +1540,7 @@ dll_code_sections_add (const char *dll_name, int base_addr, struct target_ops *t
char *name;
if (dll_name == NULL || target == NULL)
return 0;
name = strdup (dll_name);
name = xstrdup (dll_name);
dll_bfd = bfd_openr (name, "pei-i386");
if (dll_bfd == NULL)
return 0;