Increase buffer size for saving menucolors

The '"regex"=color&attr' is max BUFSZ, so prefixing with MENUCOLOR=
and adding a newline overflowed the temp buffer when saving the
menucolors.
This commit is contained in:
Pasi Kallinen
2022-08-05 18:19:02 +03:00
parent 958a8aa297
commit b01d81277e

View File

@@ -8788,7 +8788,7 @@ all_options_menucolors(strbuf_t *sbuf)
{
int i = 0, ncolors = count_menucolors();
struct menucoloring *tmp = g.menu_colorings;
char buf[BUFSZ];
char buf[BUFSZ*2]; /* see also: add_menu_coloring() */
struct menucoloring **arr;
if (!ncolors)