[svn-commits] mnicholson: branch 1.8 r287120 - in /branches/1.8: ./ main/pbx.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Sep 16 15:07:42 CDT 2010


Author: mnicholson
Date: Thu Sep 16 15:07:38 2010
New Revision: 287120

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

Modified:
    branches/1.8/   (props changed)
    branches/1.8/main/pbx.c

Propchange: branches/1.8/
------------------------------------------------------------------------------
Binary property 'branch-1.6.2-merged' - no diff available.

Modified: branches/1.8/main/pbx.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/pbx.c?view=diff&rev=287120&r1=287119&r2=287120
==============================================================================
--- branches/1.8/main/pbx.c (original)
+++ branches/1.8/main/pbx.c Thu Sep 16 15:07:38 2010
@@ -4225,12 +4225,10 @@
 
 	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;




More information about the svn-commits mailing list