diff --git a/cli.c b/cli.c index 6e1d950392e6f564568f34c3f5be0dff568c0a41..27ab3cfc87aa5c6838d419add21670c1b2c98bcb 100644 --- a/cli.c +++ b/cli.c @@ -55,7 +55,7 @@ extern unsigned long global_fin, global_fout; AST_THREADSTORAGE(ast_cli_buf, ast_cli_buf_init); /*! \brief Initial buffer size for resulting strings in ast_cli() */ -#define AST_CLI_MAXSTRLEN 256 +#define AST_CLI_INITLEN 256 void ast_cli(int fd, char *fmt, ...) { @@ -63,7 +63,7 @@ void ast_cli(int fd, char *fmt, ...) struct ast_dynamic_str *buf; va_list ap; - if (!(buf = ast_dynamic_str_thread_get(&ast_cli_buf, AST_CLI_MAXSTRLEN))) + if (!(buf = ast_dynamic_str_thread_get(&ast_cli_buf, AST_CLI_INITLEN))) return; va_start(ap, fmt);