[asterisk-commits] mmichelson: branch 1.4 r263637 - /branches/1.4/main/pbx.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon May 17 16:48:50 CDT 2010
Author: mmichelson
Date: Mon May 17 16:48:46 2010
New Revision: 263637
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=263637
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:
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=263637&r1=263636&r2=263637
==============================================================================
--- branches/1.4/main/pbx.c (original)
+++ branches/1.4/main/pbx.c Mon May 17 16:48:46 2010
@@ -1960,7 +1960,7 @@
/*! \brief ast_extensions_state2: 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;
@@ -1969,7 +1969,7 @@
if (!e)
return -1;
- 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 */
while ( (cur = strsep(&rest, "&")) ) {
More information about the asterisk-commits
mailing list