diff options
Diffstat (limited to 'apps/app_dumpchan.c')
-rw-r--r-- | apps/app_dumpchan.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_dumpchan.c b/apps/app_dumpchan.c index 8e42e9d39..ca7897e4e 100644 --- a/apps/app_dumpchan.c +++ b/apps/app_dumpchan.c @@ -137,7 +137,7 @@ static int serialize_showchan(struct ast_channel *c, char *buf, size_t size) static int dumpchan_exec(struct ast_channel *chan, void *data) { struct ast_module_user *u; - char vars[BUFSIZ * 4]; + struct ast_str *vars = ast_str_alloca(BUFSIZ * 4); /* XXX very large! */ char info[1024]; int level = 0; static char *line = "================================================================================"; @@ -147,10 +147,10 @@ static int dumpchan_exec(struct ast_channel *chan, void *data) if (!ast_strlen_zero(data)) level = atoi(data); - pbx_builtin_serialize_variables(chan, vars, sizeof(vars)); + pbx_builtin_serialize_variables(chan, &vars); serialize_showchan(chan, info, sizeof(info)); if (option_verbose >= level) - ast_verbose("\nDumping Info For Channel: %s:\n%s\nInfo:\n%s\nVariables:\n%s%s\n", chan->name, line, info, vars, line); + ast_verbose("\nDumping Info For Channel: %s:\n%s\nInfo:\n%s\nVariables:\n%s%s\n", chan->name, line, info, vars->str, line); ast_module_user_remove(u); |