Commit 3405aeee authored by Kevin J. McCarthy's avatar Kevin J. McCarthy

Convert mix_send_message to use buffer pool.

parent 1e1d7b7a
......@@ -748,8 +748,7 @@ int mix_send_message (LIST *chain, const char *tempfile)
char cd_quoted[STRING];
int i;
cmd = mutt_buffer_new ();
mutt_buffer_increase_size (cmd, HUGE_STRING);
cmd = mutt_buffer_pool_get ();
mutt_buffer_printf (cmd, "cat %s | %s -m ", tempfile, Mixmaster);
for (i = 0; chain; chain = chain->next, i = 1)
......@@ -772,7 +771,7 @@ int mix_send_message (LIST *chain, const char *tempfile)
}
}
mutt_buffer_free (&cmd);
mutt_buffer_pool_release (&cmd);
unlink (tempfile);
return i;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment