Browse Source

ctfconvert: Actually use the asprintf() helper

Fixes:	1165fc9a52 ("ctfconvert: Give bitfield types names distinct from the base type")
main
Mark Johnston 1 week ago
parent
commit
6237c3e74f
  1. 2
      cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c

2
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;

Loading…
Cancel
Save