summaryrefslogtreecommitdiffstats
path: root/cmd.c
diff options
context:
space:
mode:
authornicm <nicm>2019-10-03 10:24:05 +0000
committernicm <nicm>2019-10-03 10:24:05 +0000
commitf4c7141f5d2abd06bb90443ad9edc7c1a985eb40 (patch)
treeff3a65e8f95a1e7648d310ff625e9d22a8d17873 /cmd.c
parentbbd1032a2a6d76cacaaf729a4b465ec7ca24eef7 (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 bbcd7744..163db73b 100644
--- a/cmd.c
+++ b/cmd.c
@@ -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++) {