git: 6237c3e74fea - main - ctfconvert: Actually use the asprintf() helper

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Wed, 03 Aug 2022 00:53:12 UTC
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=6237c3e74fea2feb201a25ef870e1420028d4291

commit 6237c3e74fea2feb201a25ef870e1420028d4291
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-08-03 00:49:50 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-08-03 00:49:50 +0000

    ctfconvert: Actually use the asprintf() helper
    
    Fixes:  1165fc9a5266 ("ctfconvert: Give bitfield types names distinct from the base type")
---
 cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c b/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c
index 9c422fb58fa1..67866555ae5d 100644
--- a/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c
+++ b/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c
@@ -627,7 +627,7 @@ tdesc_intr_clone(dwarf_t *dw, tdesc_t *old, size_t bitsz, const char *suffix)
 		    "unresolved type\n", old->t_id);
 	}
 
-	asprintf(&new->t_name, "%s %s", old->t_name, suffix);
+	xasprintf(&new->t_name, "%s %s", old->t_name, suffix);
 	new->t_size = old->t_size;
 	new->t_id = mfgtid_next(dw);
 	new->t_type = INTRINSIC;