summaryrefslogtreecommitdiff
path: root/gdb/cp-abi.c
diff options
context:
space:
mode:
authorPierre Muller <muller@ics.u-strasbg.fr>2007-10-15 15:22:23 +0000
committerPierre Muller <muller@ics.u-strasbg.fr>2007-10-15 15:22:23 +0000
commit88d0d2a473017e736c538816ae86d0b96e161d97 (patch)
tree09e208f2278a13a4f10c0de49f7a22770824fcab /gdb/cp-abi.c
parentbe9748d0ae94235a9a840e21a118929c76400c64 (diff)
downloadgdb-88d0d2a473017e736c538816ae86d0b96e161d97.tar.gz
2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
* cp-abi.c (set_cp_abi_as_auto_default): ARI fix: Replace xasprintf by xstrprintf. symfile-mem.c (add_vsyscall_page): Ditto.
Diffstat (limited to 'gdb/cp-abi.c')
-rw-r--r--gdb/cp-abi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cp-abi.c b/gdb/cp-abi.c
index ced1a96b965..b4b5c31449e 100644
--- a/gdb/cp-abi.c
+++ b/gdb/cp-abi.c
@@ -193,10 +193,10 @@ set_cp_abi_as_auto_default (const char *short_name)
auto_cp_abi = *abi;
auto_cp_abi.shortname = "auto";
- xasprintf (&new_longname, "currently \"%s\"", abi->shortname);
+ new_longname = xstrprintf ("currently \"%s\"", abi->shortname);
auto_cp_abi.longname = new_longname;
- xasprintf (&new_doc, "Automatically selected; currently \"%s\"",
+ new_doc = xstrprintf ("Automatically selected; currently \"%s\"",
abi->shortname);
auto_cp_abi.doc = new_doc;