aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_phoneprov.c
diff options
context:
space:
mode:
authortwilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-04-14 19:58:52 +0000
committertwilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-04-14 19:58:52 +0000
commit7da3ee1c479feaf67f735a394e69526c3bcccfd0 (patch)
tree74c9b67b316f4ed0fa097ac47cd670c212be505b /res/res_phoneprov.c
parent27d1870f0d45b3fd093bf16b89aec789a820ec37 (diff)
Need a new buffer for each loop
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114127 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_phoneprov.c')
-rw-r--r--res/res_phoneprov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_phoneprov.c b/res/res_phoneprov.c
index 2468e36df..0d33c6987 100644
--- a/res/res_phoneprov.c
+++ b/res/res_phoneprov.c
@@ -1110,7 +1110,6 @@ static struct ast_custom_function pp_each_user_function = {
/*! \brief A dialplan function that can be used to output a template for each extension attached to a user */
static int pp_each_extension_exec(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len)
{
- char expand_buf[VAR_BUF_SIZE] = {0,};
struct user *user;
struct extension *exten;
char path[PATH_MAX];
@@ -1148,6 +1147,7 @@ static int pp_each_extension_exec(struct ast_channel *chan, const char *cmd, cha
}
AST_LIST_TRAVERSE(&user->extensions, exten, entry) {
+ char expand_buf[VAR_BUF_SIZE] = {0,};
pbx_substitute_variables_varshead(exten->headp, file, expand_buf, sizeof(expand_buf));
ast_build_string(&buf, &len, "%s", expand_buf);
}