summaryrefslogtreecommitdiffstats
path: root/cmd.c
diff options
context:
space:
mode:
authornicm <nicm>2019-10-03 10:24:05 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2019-11-27 20:48:03 +0000
commit5afe7eb850eeb812bdd92cebf1ab21f45c6dd814 (patch)
tree1868623b7e523374e1aa025650e6e10236427e44 /cmd.c
parentb2fd161b071a7076d33119c0ff9aefdd548ff25f (diff)
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.c')
-rw-r--r--cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd.c b/cmd.c
index 96cedc97..f77176c9 100644
--- a/cmd.c
+++ b/cmd.c
@@ -384,7 +384,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++) {