Commit c00e6db2 c00e6db2910935d81783f0fe681d3cf8bb743dab by Wojciech Polak

(get_personal): Fixed

1 parent c49a7e4c
......@@ -229,12 +229,13 @@ get_personal (header_t hdr, const char *field, char *personal, size_t buflen)
{
address_t address = NULL;
size_t len = 0;
frm_rfc2047_decode (hfield, sizeof (hfield));
address_create (&address, hfield);
address_get_personal (address, 1, personal, buflen, &len);
address_destroy (&address);
frm_rfc2047_decode (personal, buflen);
if (len == 0)
strncpy (personal, hfield, buflen)[buflen - 1] = '\0';
}
......