From f4c7141f5d2abd06bb90443ad9edc7c1a985eb40 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 3 Oct 2019 10:24:05 +0000 Subject: 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. --- cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd.c') 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++) { -- cgit v1.2.3