diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-03-20 01:37:10 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-03-20 01:37:10 +0000 |
commit | 3c37485b16d873d9fd8d5d448dce60a2d890e286 (patch) | |
tree | 01b974afe0c43b13dc0a0efda5ce8f0cf4b1a6a4 /gdb/gdbtypes.c | |
parent | 0e52036f1f47078a9863f6a377ff11e10a81e8c4 (diff) | |
download | fsf-binutils-gdb-3c37485b16d873d9fd8d5d448dce60a2d890e286.zip fsf-binutils-gdb-3c37485b16d873d9fd8d5d448dce60a2d890e286.tar.gz fsf-binutils-gdb-3c37485b16d873d9fd8d5d448dce60a2d890e286.tar.bz2 |
malloc() -> xmalloc.
Move malloc() decl to utils.c
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r-- | gdb/gdbtypes.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index 73966f0..86499e2 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -1350,8 +1350,7 @@ cfront_mangle_name (struct type *type, int i, int j) } ADD_EXTRA ('\0') printf ("add_mangled_type: %s\n", extras.str); /* FIXME */ - arm_mangled_name = malloc (strlen (mangled_name) + extras.len); - sprintf (arm_mangled_name, "%s%s", mangled_name, extras.str); + xasprintf (&arm_mangled_name, "%s%s", mangled_name, extras.str); xfree (mangled_name); mangled_name = arm_mangled_name; } |