aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authormnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-09-16 20:06:16 +0000
committermnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-09-16 20:06:16 +0000
commitbce3dbb896a87bbf60db1e8833b41446b379b919 (patch)
treed9897b1ef4fe23d80a474df1ba0aaed533fcf00a /main
parent73f1f6cda63e33f965bec16e6f4bc667eed6eced (diff)
Merged revisions 287118 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r287118 | mnicholson | 2010-09-16 15:04:46 -0500 (Thu, 16 Sep 2010) | 8 lines Don't limit hint processing in ast_hint_state_changed() to AST_MAX_EXTENSION length strings. (closes issue #17928) Reported by: mdu113 Patches: 20100831__issue17928.diff.txt uploaded by tilghman (license 14) Tested by: mdu113 ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@287119 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-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;