From: Russell Bryant Date: Tue, 8 Aug 2006 06:36:47 +0000 (+0000) Subject: change constant name from MAXSTRLEN to INITLEN since it is not the maximum X-Git-Tag: 1.4.0-beta1~446 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=07c8e65a6de49e7a64c8bf1257936669d4000285;p=thirdparty%2Fasterisk.git change constant name from MAXSTRLEN to INITLEN since it is not the maximum length, it is the initial length of the string when first allocated git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@39274 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/cli.c b/cli.c index 6e1d950392..27ab3cfc87 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);