]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
config_options.c: Fix truncation of option descriptions.
authorNaveen Albert <asterisk@phreaknet.org>
Thu, 9 Nov 2023 15:58:41 +0000 (10:58 -0500)
committerAsterisk Development Team <asteriskteam@digium.com>
Fri, 12 Jan 2024 18:32:13 +0000 (18:32 +0000)
This increases the format width of option descriptions
to avoid needless truncation for longer descriptions.

Resolves: #428
(cherry picked from commit d20c3e2f6fbf391f4f769209c43e446ae9603fb4)

main/config_options.c

index d258f607dc84f398b2b121c5a6a60cd40a6521db..9769fd3ae16c6f3354cb7609af89dfbad7aa8975 100644 (file)
@@ -1306,7 +1306,7 @@ static void cli_show_module_type(struct ast_cli_args *a)
        tmp = item;
        while ((tmp = AST_LIST_NEXT(tmp, next))) {
                if (!strcasecmp(tmp->type, "configOption") && !strcasecmp(tmp->ref, a->argv[4])) {
-                       ast_cli(a->fd, "%-25s -- %-65.65s\n", tmp->name,
+                       ast_cli(a->fd, "%-25s -- %-120.120s\n", tmp->name,
                                        ast_str_buffer(tmp->synopsis));
                }
        }