]> granicus.if.org Git - mutt/commitdiff
Convert mix_send_message to use buffer pool.
authorKevin McCarthy <kevin@8t8.us>
Mon, 8 Oct 2018 17:36:13 +0000 (10:36 -0700)
committerKevin McCarthy <kevin@8t8.us>
Mon, 8 Oct 2018 17:49:23 +0000 (10:49 -0700)
remailer.c

index 964c5065ed4f7fdab198718317775dfa35938bd8..ca2f33592d46470be50ecc45f7ac207e17415e8b 100644 (file)
@@ -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;
 }