diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-08-08 06:36:47 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-08-08 06:36:47 +0000 |
commit | 6fef69cce0d0b5ee98eb680a40d4d3e25f672776 (patch) | |
tree | d4add450cdefdc1969b192026ad89c32590320a0 /cli.c | |
parent | 7eba1e86bd7c5e41d392c68c5d20f4fc3e7706f6 (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@39274 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cli.c')
-rw-r--r-- | cli.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |