diff options
author | Matthew Nicholson <mnicholson@digium.com> | 2010-09-16 20:08:51 +0000 |
---|---|---|
committer | Matthew Nicholson <mnicholson@digium.com> | 2010-09-16 20:08:51 +0000 |
commit | f31d1d9cdc1fe1c9fcb13c92525ccf65417cec7c (patch) | |
tree | 79c2760524a438af951c4168f3a87dfcc10df75f | |
parent | 74e65b7ead1feabbec9fdb48fdda27e74a2983f3 (diff) |
Merged revisions 287120 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
................
r287120 | mnicholson | 2010-09-16 15:07:38 -0500 (Thu, 16 Sep 2010) | 22 lines
Merged revisions 287119 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2
................
r287119 | mnicholson | 2010-09-16 15:06:16 -0500 (Thu, 16 Sep 2010) | 15 lines
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: https://origsvn.digium.com/svn/asterisk/trunk@287121 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | main/pbx.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/main/pbx.c b/main/pbx.c index 8e20f8686..546cc8fca 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -4225,12 +4225,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; |