From: Kevin McCarthy Date: Sun, 22 Sep 2019 01:34:51 +0000 (-0700) Subject: Fix mutt_save_message() "enter_fname()" to use buffer version. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4050cc43de15a8f1c3ea6deadf0bc83ec749b626;p=mutt Fix mutt_save_message() "enter_fname()" to use buffer version. Commit be632f11 converted this function to use the buffer pool, but accidentally used the non-buffer prompt when there was already a buffer-converted version. --- diff --git a/commands.c b/commands.c index 09357284..b88335d1 100644 --- a/commands.c +++ b/commands.c @@ -902,10 +902,8 @@ int mutt_save_message (HEADER *h, int delete, int decode, int decrypt) } mutt_buffer_pretty_mailbox (buf); - if (mutt_enter_fname (prompt, buf->data, buf->dsize, 0) == -1) + if (mutt_buffer_enter_fname (prompt, buf, 0) == -1) goto cleanup; - mutt_buffer_fix_dptr (buf); - if (!mutt_buffer_len (buf)) goto cleanup;