[asterisk-commits] mnicholson: branch 1.4 r287118 - /branches/1.4/main/pbx.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Sep 16 15:04:50 CDT 2010


Author: mnicholson
Date: Thu Sep 16 15:04:46 2010
New Revision: 287118

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=287118
Log:
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

Modified:
    branches/1.4/main/pbx.c

Modified: branches/1.4/main/pbx.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/main/pbx.c?view=diff&rev=287118&r1=287117&r2=287118
==============================================================================
--- branches/1.4/main/pbx.c (original)
+++ branches/1.4/main/pbx.c Thu Sep 16 15:04:46 2010
@@ -2017,12 +2017,10 @@
 
 	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;




More information about the asterisk-commits mailing list