summaryrefslogtreecommitdiffabout
path: root/frm
authorWojciech Polak <polak@gnu.org>2004-01-13 09:52:09 (GMT)
committer Wojciech Polak <polak@gnu.org>2004-01-13 09:52:09 (GMT)
commitc00e6db2910935d81783f0fe681d3cf8bb743dab (patch) (side-by-side diff)
tree73ed81d106db817c0f753d9b32719b7449e0f1d1 /frm
parentc49a7e4cf5c2ab354d89d2d785aaa84e1cc4ce48 (diff)
downloadmailutils-c00e6db2910935d81783f0fe681d3cf8bb743dab.tar.gz
mailutils-c00e6db2910935d81783f0fe681d3cf8bb743dab.tar.bz2
(get_personal): Fixed
Diffstat (limited to 'frm') (more/less context) (ignore whitespace changes)
-rw-r--r--frm/frm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/frm/frm.c b/frm/frm.c
index c4f060b..3523a84 100644
--- a/frm/frm.c
+++ b/frm/frm.c
@@ -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';
}

Return to:

Send suggestions and report system problems to the System administrator.