Do not lazily use BUFSIZ for "I don't care what size" when building

strings because it is only guaranteed to be 256 bytes and even the
default 1024 is not always enough. Reported by Gregory Pakosz.
This commit is contained in:
nicm
2019-10-03 10:24:05 +00:00
parent bbd1032a2a
commit f4c7141f5d
5 changed files with 7 additions and 7 deletions

View File

@ -61,7 +61,7 @@ cmd_list_keys_exec(struct cmd *self, struct cmdq_item *item)
struct key_table *table;
struct key_binding *bd;
const char *tablename, *r;
char *key, *cp, tmp[BUFSIZ];
char *key, *cp, tmp[8192];
int repeat, width, tablewidth, keywidth;
if (self->entry == &cmd_list_commands_entry)