]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 287118 via svnmerge from
authorMatthew Nicholson <mnicholson@digium.com>
Thu, 16 Sep 2010 20:06:16 +0000 (20:06 +0000)
committerMatthew Nicholson <mnicholson@digium.com>
Thu, 16 Sep 2010 20:06:16 +0000 (20:06 +0000)
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/branches/1.6.2@287119 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/pbx.c

index 4a945e06a09a5952c9bb31bb27d817bd05123b5b..f5b2aeeb42a3461437d643d487b97301858e0f56 100644 (file)
@@ -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;