~kevin8t8/mutt

d8e518db4f83f7fed8087d94a36cb5615442b10e — Kevin McCarthy a month ago c72f740
Increase the buffer size in _mutt_get_field().

Not doing so caused the subsequent _mutt_enter_string() to use the
default buffer pool size of 1024 - negating the HUGE_STRING value
passed into _mutt_get_field().

(Once we fully transition to buffers, this awkwardness can go away...)
1 files changed, 1 insertions(+), 0 deletions(-)

M curs_lib.c
M curs_lib.c => curs_lib.c +1 -0
@@ 215,6 215,7 @@ int _mutt_get_field (const char *field, char *buf, size_t buflen, int complete, 

  buffer = mutt_buffer_pool_get ();

  mutt_buffer_increase_size (buffer, buflen);
  mutt_buffer_addstr (buffer, buf);
  rc = _mutt_buffer_get_field (field, buffer, complete, multiple, files, numfiles);
  strfcpy (buf, mutt_b2s (buffer), buflen);