]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't limit hint processing in ast_hint_state_changed() to AST_MAX_EXTENSION length...
authorMatthew Nicholson <mnicholson@digium.com>
Thu, 16 Sep 2010 20:04:46 +0000 (20:04 +0000)
committerMatthew Nicholson <mnicholson@digium.com>
Thu, 16 Sep 2010 20:04:46 +0000 (20:04 +0000)
(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/branches/1.4@287118 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/pbx.c

index e88bdb879fd071697dddfcb1bb046f678d675b33..67d4ac71a974e4ddf2297867fca8fc1a7f3e3ba7 100644 (file)
@@ -2017,12 +2017,10 @@ void ast_hint_state_changed(const char *device)
 
        AST_LIST_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, device))
                                break;