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.
Co-authored-by: Richard Russon <rich@flatcap.org>
mutt_buffer_fix_dptr(buf);
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);
size_t pathlen = mutt_buffer_len(buf);
if (pathlen == 0)