Commit f095c407 f095c40739418cd4edfb5b822e4e0c6a83bd0e62 by Sergey Poznyakoff

(builtin_formataddr): Bugfix.

1 parent f94f3274
......@@ -1751,10 +1751,12 @@ builtin_formataddr (struct mh_machine *mach)
}
}
list_append (mach->addrlist, addr);
address_to_string (dest, NULL, 0, &size);
strobj_realloc (&mach->reg_str, size + 1);
address_to_string (dest, strobj_ptr (&mach->reg_str), size + 1, NULL);
address_destroy (&dest);
if (address_to_string (dest, NULL, 0, &size) == 0)
{
strobj_realloc (&mach->reg_str, size + 1);
address_to_string (dest, strobj_ptr (&mach->reg_str), size + 1, NULL);
address_destroy (&dest);
}
}
/* putaddr literal print str address list with
......