From 0dfdb8ba76b1b0dd140c9bd536fed5e8083a55e9 Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Mon, 15 Oct 2007 15:22:23 +0000 Subject: 2007-10-15 Pierre Muller * cp-abi.c (set_cp_abi_as_auto_default): ARI fix: Replace xasprintf by xstrprintf. symfile-mem.c (add_vsyscall_page): Ditto. --- gdb/cp-abi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/cp-abi.c') diff --git a/gdb/cp-abi.c b/gdb/cp-abi.c index ced1a96..b4b5c31 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; -- cgit v1.1