aboutsummaryrefslogtreecommitdiffstats
path: root/main/pbx.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/pbx.c')
-rw-r--r--main/pbx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 4a945e06a..f5b2aeeb4 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -3866,12 +3866,10 @@ static int handle_statechange(void *datap)
AST_RWLIST_TRAVERSE(&hints, hint, list) {
struct ast_state_cb *cblist;
- char buf[AST_MAX_EXTENSION];
- char *parse = buf;
+ char *parse = ast_strdupa(ast_get_extension_app(hint->exten));
char *cur;
int state;
- ast_copy_string(buf, ast_get_extension_app(hint->exten), sizeof(buf));
while ( (cur = strsep(&parse, "&")) ) {
if (!strcasecmp(cur, sc->dev)) {
break;