[asterisk-commits] seanbright: branch group/1.6.1-maintenance r263641 - /team/group/1.6.1-mainte...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon May 17 17:10:36 CDT 2010


Author: seanbright
Date: Mon May 17 17:10:33 2010
New Revision: 263641

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=263641
Log:
Remove arbitrary size limitation for hints.

(closes issue #17257)
Reported by: tim_ringenbach
Patches:
      hints_crash_fix.diff uploaded by tim ringenbach (license 540)

Modified:
    team/group/1.6.1-maintenance/main/pbx.c

Modified: team/group/1.6.1-maintenance/main/pbx.c
URL: http://svnview.digium.com/svn/asterisk/team/group/1.6.1-maintenance/main/pbx.c?view=diff&rev=263641&r1=263640&r2=263641
==============================================================================
--- team/group/1.6.1-maintenance/main/pbx.c (original)
+++ team/group/1.6.1-maintenance/main/pbx.c Mon May 17 17:10:33 2010
@@ -3307,7 +3307,7 @@
 /*! \brief Check state of extension by using hints */
 static int ast_extension_state2(struct ast_exten *e)
 {
-	char hint[AST_MAX_EXTENSION] = "";
+	char *hint;
 	char *cur, *rest;
 	struct ast_devstate_aggregate agg;
 
@@ -3316,7 +3316,7 @@
 
 	ast_devstate_aggregate_init(&agg);
 
-	ast_copy_string(hint, ast_get_extension_app(e), sizeof(hint));
+	hint = ast_strdupa(ast_get_extension_app(e));
 
 	rest = hint;	/* One or more devices separated with a & character */
 




More information about the asterisk-commits mailing list