diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-09-04 14:43:06 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-09-04 14:43:06 +0000 |
commit | 2dd23f6ca08a182af64abcc960e5462cd456fd91 (patch) | |
tree | 5fd7b9e1d4243f3e932a8ffc63dafb3a80414f76 /sendlib.c | |
parent | 1a5970086d59b3d3b2a8b45b3fa93ec4c0f723a6 (diff) |
Fixing a memory leak in mutt_prepare_envelope().
Diffstat (limited to 'sendlib.c')
-rw-r--r-- | sendlib.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1671,12 +1671,13 @@ void mutt_prepare_envelope (ENVELOPE *env) * it by using an empty To: field. */ env->to = rfc822_new_address (); - env->to->mailbox = safe_strdup ("undisclosed-recipients:;"); env->to->group = 1; env->to->next = rfc822_new_address (); - + buffer[0] = 0; - rfc822_cat (buffer, sizeof (buffer), env->to->mailbox, RFC822Specials); + rfc822_cat (buffer, sizeof (buffer), "undisclosed-recipients:;", + RFC822Specials); + env->to->mailbox = safe_strdup (buffer); } |