diff options
author | nicm <nicm> | 2019-10-03 10:24:05 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-10-03 10:24:05 +0000 |
commit | f4c7141f5d2abd06bb90443ad9edc7c1a985eb40 (patch) | |
tree | ff3a65e8f95a1e7648d310ff625e9d22a8d17873 /cmd-list-keys.c | |
parent | bbd1032a2a6d76cacaaf729a4b465ec7ca24eef7 (diff) | |
download | rtmux-f4c7141f5d2abd06bb90443ad9edc7c1a985eb40.tar.gz rtmux-f4c7141f5d2abd06bb90443ad9edc7c1a985eb40.tar.bz2 rtmux-f4c7141f5d2abd06bb90443ad9edc7c1a985eb40.zip |
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.
Diffstat (limited to 'cmd-list-keys.c')
-rw-r--r-- | cmd-list-keys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-list-keys.c b/cmd-list-keys.c index 57f65c8e..ef862101 100644 --- a/cmd-list-keys.c +++ b/cmd-list-keys.c @@ -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) |