diff options
author | 2019-10-03 10:24:05 +0000 | |
---|---|---|
committer | 2019-10-03 10:24:05 +0000 | |
commit | 4512d27dffa1b46465f22ac4878edd9458546ab4 (patch) | |
tree | 2b851aa65e262934df85c5f4122484ca06a3c58e /usr.bin/tmux/cmd.c | |
parent | no need to increment argv and decrement argc, we're not using them later (diff) | |
download | wireguard-openbsd-4512d27dffa1b46465f22ac4878edd9458546ab4.tar.xz wireguard-openbsd-4512d27dffa1b46465f22ac4878edd9458546ab4.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 'usr.bin/tmux/cmd.c')
-rw-r--r-- | usr.bin/tmux/cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd.c b/usr.bin/tmux/cmd.c index 54b0d23eba1..a70ee5a6644 100644 --- a/usr.bin/tmux/cmd.c +++ b/usr.bin/tmux/cmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd.c,v 1.154 2019/08/29 07:13:48 nicm Exp $ */ +/* $OpenBSD: cmd.c,v 1.155 2019/10/03 10:24:05 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -385,7 +385,7 @@ cmd_find(const char *name, char **cause) { const struct cmd_entry **loop, *entry, *found = NULL; int ambiguous; - char s[BUFSIZ]; + char s[8192]; ambiguous = 0; for (loop = cmd_table; *loop != NULL; loop++) { |